A Five Minute SQL-I
A coupon code parameter in a flight booking flow was vulnerable to blind SQL injection, as indicated by a MySQL error when a single quote was submitted. An attacker could potentially manipulate the database, though the text does not demonstrate data extraction.
Published on web.archive.org
{{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 application concatenated user input directly into a SQL query without parameterisation or proper escaping.
Impact
The injection could allow an attacker to alter database queries, potentially accessing or modifying data, though the text only shows an error and does not demonstrate further exploitation.
What the attacker needed
Access to the flight booking page; ability to intercept HTTP requests
How it was found
- Go to the flight booking page.
- Find the add coupon option.
- Add a test coupon and intercept the request with a proxy; note it is JSON.
- Add a single quote to the coupon code parameter and observe a MySQL error.
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 user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. Here, adding a single quote to a coupon code caused a database error, which is a classic sign that the input is being used directly in a query. This is called 'blind' because the attacker does not see query results directly, only errors or timing differences.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.