From Broken Code to SQL Showdown: How I Found Critical Blind Inje
A login form was vulnerable to time-based blind SQL injection in the username parameter, allowing an attacker to extract database contents including user credentials and sensitive configuration data.
Free Link🎈
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 an SQL query without proper parameterisation, allowing injection.
Impact
An attacker could extract sensitive data including user credentials, API keys, JWT secrets, and internal infrastructure details, potentially leading to full system compromise.
What the attacker needed
Access to the login endpoint; ability to send crafted requests
How it was found
- Send a POST request to the login endpoint with a crafted username that includes a time-delay function.
- Observe a 5-second delay in the response, confirming the injection.
- Use SQLMap with the saved request to enumerate databases.
- Dump tables and extract user credentials and configuration data.
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 login page had a hidden flaw: when you typed certain characters into the username field, the website's database paused for a few seconds. By measuring these pauses, an attacker could ask the database yes/no questions and slowly steal information like passwords and secret keys.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.