When One Isn’t Enough: Multiple SQL Injections Found in 1 VDP
The author found multiple SQL injection vulnerabilities in a VDP program by using Google dorks to locate error messages and parameters, then confirming with UNION, time-based, and boolean-based payloads. An attacker could use these to extract database contents.
medium.com
Published on medium.com
Google Dork is a pretty good way to find SQL Injection in large Scope. Like below.
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 input directly into SQL queries without proper validation or parameterisation.
Impact
An attacker could extract database contents, as demonstrated by the successful UNION, time-based, and boolean-based injections.
What the attacker needed
Publicly accessible web pages with parameters; No authentication required
The fix
The application should validate user input and use prepared statements with parameterised queries to prevent SQL injection.
How it was found
- Use Google dorks to find pages with SQL error messages or id-like parameters.
- Test the parameter with a UNION SELECT payload to see if data is returned.
- Test with a time-based SLEEP payload to confirm injection via delay.
- Test with a boolean-based payload to see different responses for true and false conditions.
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.
SQL injection is when a website puts user input directly into a database command, so an attacker can change the command. Here, the author searched Google for pages that showed database error messages, then tested parameters like 'id' with special inputs to see if the database reacted differently. This let them read data from the database.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.