How I found Blind SQL Injection just by browsing and getting a unique URL
A POST request found while browsing contained parameters that were passed into a database query without safe handling, so a time-based payload made the server pause for five seconds. The hunter then used an automated tool to extract the current database name, though a firewall blocked some of the attempts.
Published on medium.com
Hello Guys! I am a part-time bug hunter at Bugcrowd and I will share how I found a Blind SQL INJECTION manually just by browsing and checking http history in BURPSUITE.
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 concatenated user-supplied parameter values directly into SQL queries instead of using parameterised queries.
Impact
An attacker could read data from the database, though a firewall blocked some of the automated attempts and only the current database name is shown as retrieved.
What the attacker needed
Invited to a private programme; proxy to capture requests; automated injection tool
How it was found
- Browse the site through a proxy so all requests are recorded in the HTTP history.
- Look through the history for an unusual POST request that is not normally reachable.
- Send a time-based payload in each parameter and watch for a five-second delay.
- Copy the working request and run an automated injection tool against it.
- Adjust the tool's options and tamper script to get past the firewall and read the database name.
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.
A database is where a site keeps its data, and the site asks it questions using a special language called SQL. If the site builds those questions by pasting in whatever a user typed, an attacker can add extra instructions. Here the attacker added a command that makes the database wait five seconds, which proves the injected instructions actually ran.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.