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.)