I Found A Time Based Sqli But Someone Beat Me To It
A POST parameter was vulnerable to time-based blind SQL injection, as shown by a delay when a sleep payload was sent. An attacker could use this to extract database information, but the report was a duplicate of an earlier submission.
Published on infosecwriteups.com
I was doing some bug bounty hunting the other night — nothing serious, just messing around while I had Burp open. I came across a parameter in a POST request: accountID=IN-1.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application inserted the accountID parameter directly into a SQL query without proper parameterisation or escaping.
Impact
An attacker could use time delays to extract database contents, but the report was closed as a duplicate of an earlier submission.
What the attacker needed
Ability to send POST requests; no authentication mentioned
The fix
The application should use parameterised queries or properly escape the accountID input to prevent SQL injection.
How it was found
- Intercept the POST request containing the accountID parameter.
- Replace the accountID value with a time-delay SQL payload.
- Send the request and observe a 10-second response delay.
- Repeat with a shorter delay and with the normal value to confirm the behaviour.
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 write-up has not been written yet. The Original tab links to the source.
The tester changed a value in a web request to a special database command that makes the server wait. When the server took 10 seconds to reply, it showed the command ran, meaning the input was not safely handled. This is called blind SQL injection because the attacker cannot see data directly but can ask yes/no questions using delays.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.