How I found a critical P1 bug in 5 minutes using a cellphone — Bug Bounty
A login form on a subdomain was vulnerable to time-based SQL injection, confirmed when the server delayed its response by 40 seconds. An attacker could inject SQL through the login request, potentially reading or altering database contents.
{{media:0}}
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 login form passed user input straight into a database query without parameterisation, allowing injected SQL to run.
Impact
The injection could let an attacker run arbitrary database queries through the login form, though the text only demonstrates the time delay and does not show data extraction.
What the attacker needed
Invitation to a private program; in-scope login form; mobile phone with a browser
How it was found
- Search for login forms on in-scope subdomains using a search engine dork
- Pick a subdomain with a login form and submit a time-based SQL injection payload
- Observe the server taking 40 seconds to respond, confirming the injection
- Capture the POST request in a mobile browser for use with an automated tool
- Report the finding to the program, where it was triaged
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 login form sends what you type to a database to check your credentials. Here the site built that database query by pasting in user input without cleaning it, so specially crafted text could change the query itself. The tester proved this by making the database deliberately pause for 40 seconds before answering.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.