Blind SQL Injection on DoD Site
A DoD website was vulnerable to blind SQL injection in the 't' parameter of viewVideo.asp. An attacker could inject a time-delay payload to confirm the vulnerability and potentially extract data.
- Triaged in 2 days
- Fixed in 4 months
- Disclosed after 2.4 years
Summary by the researcher
Identified Time Based Blind Sql Injection on one of the DoD site. Team get it fixed well.
The report
Hi There, One of the DoD Site is vulnerable to blind sql injection.
#Affected Domain: www.███
#PoC:
Navigate to below url
http://www.█████████/viewVideo.asp?t=7
Just replace 7 with pg_sleep(__30__)--
GET /viewVideo.asp?t=pg_sleep(30)--
As a response you can see time delay compared with viewVideo.asp?t=7
#####Time Slot:
viewVideo.asp?t=7 -----------> 240-330 milliseconds viewVideo.asp?t=pg_sleep(30)-- -----------> 15000-19000 milliseconds
#Fix: Should sanitize the dangerous input or using parameterised queries.
Let me know if any further info is required.
Regards, Mr_R3boot.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application concatenated user input directly into a SQL query without sanitisation or parameterisation.
Impact
An attacker could confirm the SQL injection and potentially extract database contents, though the report only demonstrates a time delay.
What the attacker needed
None
How it was found
- Navigate to the viewVideo.asp page with the parameter t set to 7.
- Replace the value 7 with a time-delay payload.
- Observe the response time increase from a few hundred milliseconds to many seconds.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SQL injection is when user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. Here, the 't' parameter was used directly in a database command, so adding a sleep function made the server pause, proving the injection worked.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.