Two injection vulnerabilities in php168 v5.0

Source: Internet
Author: User

By: xhming

Homepage calledRequire(PHP168_ PATH."Inc/label. php");
Continue to follow up;

Label. php

If($ Jobs =Show)
{
If(! $ _ COOKIE [Admin])
{
Showerr ("Ä ¿'");
}
//» Aímímímímā² µä± Ç ço©
Preg_replace (/$ Label [([a-zA-Z0-9 \ _] +)]/eis,"Label_array_hf (\ 1 )", Read_file (html ("Head", $ Head_tpl )));
Preg_replace (/$ Label [([a-zA-Z0-9 \ _] +)]/eis,"Label_array_hf (\ 1 )", Read_file (html ("Foot", $ Foot_tpl )));

// $ Label_hf **í · ² ********************************©

Is_array ($ label_hf) | $ label_hf =Array(); // ---------- Note!
Foreach($ Label_hf AS $ key => $ value)
{
$ Rs = $ db-> get_one ("SELECT * FROM {$ pre} label WHERE ch = $ ch AND tag = $ key AND module = $ ch_module AND chtype = 99");

If($ Rs [tag])
{
$ Divdb = unserialize ($ rs [divcode]);
$ Label [$ key] = add_div ($ label [$ key]? $ Label [$ key]: , $ Rs [tag], $ rs [type], $ divdb [div_w], $ divdb [div_h], $ divdb [div_bgcolor],99);
}
Else
{
$ Label [$ key] = add_div ("Ð Â ± ê Ç©, Î Þ äúé", $ Key,NewTag,,,,99);
}
}


The $ label_hf array is not initialized. Then, a loop puts its subscript $ key into an SQL statement. In addition, addcslashes does not handle the problem of the array's lower mark, resulting in an injection vulnerability, unfortunately, the returned statement is not displayed on the homepage, so you can note it blindly!

Member/list. php

If($ Step =2)
{
If(! $ AidDB )//-----------------------------------------
{
Showerr ("Çoröáépanñane ~añean» ~~~~ä~â");
}
Elseif(! $ Type)
{
Showerr ("Çadeañañe² Ù × Ä ä¿ ± ê, çé ¾ ³ ý ...");
& N

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.