Handle online master site SQL injection (bypassing the filtering mechanism)

Source: Internet
Author: User

Handle online master site SQL injection (bypassing the filtering mechanism)

Handle online master site SQL injection (bypassing the filtering mechanism)

POST /ajax/address.php?modify=m HTTP/1.1Host: www.lashou.comUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: http://www.lashou.com/account/address/Cookie: client_key=2f06c4d7dfb3f8281ddff967ca8d600e; visit_city_string=beijing; __utma=1.1169558814.1450413021.1450441806.1450449931.3; __utmz=1.1450413021.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); uuid=9abe7913c3df1c973089208e4923e0f968eejxu15676286184; downBanner=1; history=9028797%2C10895388; lastpay=alipay; __utmv=1.|2=%E8%B4%AD%E4%B9%B0%E7%8A%B6%E6%80%81=%E9%A6%96%E6%AC%A1%E8%B4%AD%E4%B9%B0=1; ThinkID=7v2nkos6s8l9v63npm1k8c7ie3; __utmc=1; login_name2=per1sh; pwd2=f4a95c006e7939b1b7c68cd30c1c79cf; city_b=2419; show_index_qr=1; view_goods=%5B%2211981290%22%2C%2211939804%22%5D; weatherinfo=%u5317%u4EAC%2C1%2C11%2C%u591A%u4E91%2C32%u2103%7E19%u2103X-Forwarded-For: 8.8.8.8Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 281id=27198894&id=27198894&username=1111&province=130000&city=130300&town=110228&address=111111111111111111&code=100001&phone1=&phone2=&phone3=&mobliephone=130****0764&real_mobliephone=130****0764



The id parameter is not filtered and can be extended for injection.

Delay: 3 seconds
 



2 seconds delay
 



Judge length the current database length is 4
 



Since a part of the key word including ascii is filtered, it can still be bypassed.
 


Database: logs

POST /ajax/address.php?modify=m HTTP/1.1Host: www.lashou.comUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: http://www.lashou.com/account/address/Cookie: client_key=2f06c4d7dfb3f8281ddff967ca8d600e; visit_city_string=beijing; __utma=1.1169558814.1450413021.1450441806.1450449931.3; __utmz=1.1450413021.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); uuid=9abe7913c3df1c973089208e4923e0f968eejxu15676286184; downBanner=1; history=9028797%2C10895388; lastpay=alipay; __utmv=1.|2=%E8%B4%AD%E4%B9%B0%E7%8A%B6%E6%80%81=%E9%A6%96%E6%AC%A1%E8%B4%AD%E4%B9%B0=1; ThinkID=7v2nkos6s8l9v63npm1k8c7ie3; __utmc=1; login_name2=per1sh; pwd2=f4a95c006e7939b1b7c68cd30c1c79cf; city_b=2419; show_index_qr=1; view_goods=%5B%2211981290%22%2C%2211939804%22%5D; weatherinfo=%u5317%u4EAC%2C1%2C11%2C%u591A%u4E91%2C32%u2103%7E19%u2103X-Forwarded-For: 8.8.8.8Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 281id=27198894&id=27198894&username=1111&province=130000&city=130300&town=110228&address=111111111111111111&code=100001&phone1=&phone2=&phone3=&mobliephone=130****0764&real_mobliephone=130****0764



The id parameter is not filtered and can be extended for injection.

Delay: 3 seconds
 



2 seconds delay
 



Judge length the current database length is 4
 



Since a part of the key word including ascii is filtered, it can still be bypassed.
 


Database: logs

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.