Use get-based search injection to detect websites

Source: Internet
Author: User

By love letter

In the search box, enter a keyword, which must be searched for on this site. For example, I entered 1 on this site and found a lot of news.

Determine whether there is an injection vulnerability in the search box.

In the search box, enter 1% and 1 = 1 and % =
Return normal


In the search box, enter 1% and 1 = 2 and % =
Returns an exception.
Sorry, no news found
This is an injection point.

In the search box, search keyword 1. the address bar of the browser displays: asp? Key = 1 & otype = msg "> http://www.bkjia.com/News_search.asp? Key = 1 & otype = msg

Here the key = 1, that is, we search for the keyword 1. What we need to do is put key = 1 at the end and change the connection
Http://www.bkjia.com/News_search.asp? Otype = msg & key = 1, or directly Delete & otype = msg into http://www.bkjia.com/News_search.asp? Key = 1

You can use a tool to mount it in.

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.