How I Found a Critical SQL Injection in Mercedes-Benz My First Write-up
A search parameter on a Mercedes-Benz classic parts site was vulnerable to SQL injection, as shown by a single quote causing a database error. An attacker could dump entire database tables and extract sensitive information.
Published on medium.com
My name is Youssef Ezzat, and I am a Cybersecurity Researcher and Bug Bounty Hunter.
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 SQL queries without parameterisation or proper escaping.
Impact
An attacker could potentially dump entire database tables and extract sensitive information.
What the attacker needed
Access to the search page; none
The fix
The vulnerability was fixed and resolved according to the report.
How it was found
- Pick a target from the Mercedes-Benz scope and look for search functionality.
- Intercept the search request with Burp Suite and note the POST request and parameter.
- Send the request to Burp Repeater and add a single quote to the parameter.
- Observe a 500 error with a verbose SQL error message.
- Try double quotes and see a normal 200 response, confirming injection.
- Use SQLMap to verify the injection types and backend database.
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 command without proper handling, letting an attacker change the command. Here, typing a single quote into a search box broke the database query and revealed an error, showing the input was not safely handled. This could let someone read or steal data from the database.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.