About Phpwind 5.01-5.3 0day analysis article

Source: Internet
Author: User
Today to Luoluo cattle grabbed the next bag, this loophole is very bull:
passport_client.php variables are not initialized to bypass those judgments:

if (! $passport _ifopen | | $passport _type!= ' client ') {
Exit ("Passport closed (Phpwind)");
}//Submit: Passport_ifopen =1&passport_type=client Bypass


if (MD5 ($action. $userdb. $forward. $passport _key)!= $verify) {
Exit (' Illegal request (phpwind) ');
The variables inside can be customized, so you can sy around

Parse_str (Strcode ($userdb, ' DECODE '), $USERDB); Pay attention to Strcode ($userdb, ' DECODE '), so you have to encode the variable $userdb,strcode ($userdb, ' DECODE ') you submit.

if ($action = = ' Login ') {//Submit Action=login

if (! $userdb [' time '] | |! $USERDB [' username '] | | |! $USERDB [' password ']) {
Exit ("Lack of parameters (Phpwind)");
}//submitted $userdb decoding to have this data later

if ($timestamp-$userdb [' time ']>3600] {
Exit (' Passport request expired (phpwind) ');
}//commit userdb[' time '] bigger
.....
$rt = $db->get_one ("Select UID $sql from pw_members WHERE username= ' $userdb [username] '");
if ($RT) {//If there is this user, call the following statement to modify the password, etc.

$sql && $db->update ("Update pw_members SET $sql WHERE uid= ' $rt [uid] '");
$sql 2 && $db->update ("Update Pw_memberdata SET $sql 2 WHERE uid= ' $RT [uid] '");

}else{//If you do not have this user will call the following add a

$db->update ("REPLACE into Pw_members ($sql 1,groupid,memberid,gender,regdate,signchange) VALUES ($sql 2, '-1 ', ' 8 ', ' 0 ', ' $timestamp ', ' 1 ');


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.