Analysis and utilization of SQL Injection Vulnerability (II.)

Source: Internet
Author: User
Access Manual Injection

1. Experimental environment:
Experimental platform: Small Cyclone Aspweb server
Target site: Southern Data 2.0
2. Open the website and open a page at random

See? Id=4
Indicates a parameter pass, with a Get method, which may be an injection point
Add a judgment statement:
Url:http://xxx/shownews.asp? Id=16
SQL statement: Select from News where id=16
Test statement:
Http://xxx/shownews.asp? Id=16 and 1=1
Equivalent to: Select from
News where id=16 and 1=1
If there are no errors in front and back two execution, the added content is brought into the database to make a query, you can judge the place as an injection point
Http://xxx/shownews.asp? Id=16 and 1=2
Equivalent to: SELECT * from news where id=16 and 1=2
3. Guess that you can use the Exists () function
You can get the table name by checking the source code (with the luck ingredient, not necessarily can guess)

The display is normal, indicating that there is manage_user

The display is normal, indicating that there is username

The display is normal, indicating that there is password
Use Union union query to derive field names
Using ORDER BY

The number of fields is 11

Page display:

User name and password are derived from the field name:

Page display:

This will burst out the site administrator's user and password

Study notes for Guangping Teacher's course

Analysis and utilization of SQL Injection Vulnerability (II.)

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.