MTA Prices
Time-based SQli
How to identify
You can leverage the trackID
in the cookie to manipulate the session content, which the server sends back in the response header.
Also, modifying the trackID
to an unintended value causes the email field in the session to display an “Error“ message.
Importantly, this presents an opportunity to manipulate user input to create anomalies.
Proof of Concept
1 | GET / HTTP/1.1 |
The email showing no error means the SQL commands have been successfully executed.
Exploitation
Replace ARG1 and ARG2 with your dictionaries…
ARG1: Numbers ranging from 0 to 20
ARG2: All printable characters, ASCII 32 to 126
Get admin’s email:
1 | GET / HTTP/1.1 |
Get admin’s password:
1 | GET / HTTP/1.1 |
1 | mail - > emily.brown@mta.com |
Reference
https://www.kirsle.net/wizards/flask-session.cgi
https://superboy-zjc.github.io/2020/08/05/阶段四、Web渗透测试/7、SQL注入/#二、SQL注入的注入点