My First Blind SQL Injection
A subdomain endpoint was vulnerable to time-based blind SQL injection, allowing an attacker to delay the server's response by a chosen number of seconds. The reporter confirmed the vulnerability by observing the exact delay specified in the payload.
I was hacking on a big scope target, I started by collecting the subdomains of the target from the different resources.
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 user input directly into a SQL query without proper parameterisation or validation.
What the attacker needed
Access to the target subdomain; ability to send crafted requests
How it was found
- Collected subdomains using various tools and resolved them to find web services.
- Manually opened subdomains and spidered the chosen host with Burp Suite to get endpoints.
- Sent all endpoint requests to Burp Repeater and manually injected time-based SQL payloads.
- Found an endpoint that delayed the response by the exact time specified in the payload.
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.
Blind SQL injection is when an attacker can't see database output directly but can ask yes/no questions through the app's behaviour. Here, the attacker made the database wait for a set time if a condition was true, proving the injection worked. This let them confirm the flaw without seeing any data.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.