$4000 Blind SQL Injection in inDrive
A blind SQL injection in inDrive's API allowed an attacker to manipulate a URL path parameter and infer database contents by observing different responses. The attacker could extract sensitive data such as phone numbers and database version.
medium.com
Published on medium.com
medium.com](https://medium.com/@kumawatabhijeet2002/received-an-appreciation-letter-from-nasa-927c3d1ae828)
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-supplied URL path parameters directly into SQL queries without proper parameterisation or validation.
Impact
Attackers could extract PII, phone numbers, or credentials, and further exploitation might allow arbitrary queries such as dropping tables or gaining admin access.
What the attacker needed
Access to the promo site; ability to send crafted requests
The fix
The vulnerability was fixed by using parameterized queries, input validation, and WAF rules.
How it was found
- Observe a request to an API endpoint that fetches user data based on URL path parameters.
- Modify the URL path to include a true condition and note that random user data is returned.
- Modify the URL path to include a false condition and note that an empty response is returned.
- Craft a payload that forces a type conversion error to leak the database version.
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 blind SQL injection is a flaw where user input is inserted into a database command, but the app does not show errors or data directly. Instead, attackers send different inputs and watch how the app responds to guess the database contents. Here, changing a number in the URL made the app return user data or nothing, revealing the injection.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.