My Adventure in Bug Bounty: Sharing My Very First Successful Disc
The login endpoint was vulnerable to time-based blind SQL injection, allowing an attacker to extract usernames and passwords by observing response delays. The author demonstrated extracting the length and characters of a username.
Published on medium.com
I felt both excited and terrified as I entered the world of bug bounties. It seemed an endless ocean of opportunities where new challenges arrived with each wave.
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 built SQL queries by concatenating user input directly, without using parameterised queries or prepared statements.
Impact
An attacker could extract sensitive information from the database through timing attacks, potentially leading to further exploitation.
What the attacker needed
Access to the login page; ability to send crafted requests
How it was found
- Navigate to the login page.
- Enter a payload in the username field that causes a conditional time delay.
- Observe the delayed response to confirm SQL injection.
- Use similar payloads to extract usernames and passwords iteratively.
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 form did not properly separate user input from database commands, so an attacker could insert extra database instructions. By making the database wait before responding, the attacker could ask yes/no questions and slowly learn secret information like usernames and passwords.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.