Modify and fix PHPCMS V9 member table content at will

Source: Internet
Author: User

When register_global = On is set On the server because a variable is not initialized, members can modify their own member information at will.
The effect is limited because register_global = On is required .. Vulnerabilities involve the fact that a Member can modify his/her balance, which may cause serious consequences on the website. Therefore, the vulnerability level is set to high.
Description: The account_manage_password function for modifying the user password is not initialized for $ updateinfo. As a result, it can be submitted.
In an array such as updateinfo [amount], you can modify your balance, points, member groups, VIP, and other information stored in the member table at will.
File: \ phpcms \ modules \ member \ index. php

About 435 rows: www.2cto.com
$ Newpassword = password ($ _ POST ['info'] ['newpassword'], $ this-> memberinfo ['encryption']);
$ Updateinfo ['Password'] = $ newpassword;
$ This-> db-> update ($ updateinfo, array ('userid' => $ this-> memberinfo ['userid']);
Vulnerability proof: file: \ phpcms \ modules \ member \ index. php

About 435 rows:
$ Newpassword = password ($ _ POST ['info'] ['newpassword'], $ this-> memberinfo ['encryption']);
$ Updateinfo ['Password'] = $ newpassword;
$ This-> db-> update ($ updateinfo, array ('userid' => $ this-> memberinfo ['userid']);

Solution:

$ Updateinfo = array ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.