SQLI Bug Bounty
A SQL injection flaw existed in the locale parameter of a search engine's trend API endpoint. An attacker could use it to extract database names, tables, columns and data via sqlmap.
Published on medium.com
in a few days ago, i try to join with a bug bounty program and i try to search the program still running and managed.
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
Impact
An attacker could read arbitrary data from the backend database, including tables and columns the tester found interesting.
What the attacker needed
Network access to the API endpoint; no authentication mentioned
How it was found
- Capture the trend API request in Burp and save it as a text file.
- Run sqlmap against the saved request to enumerate databases.
- Enumerate tables in the discovered database.
- Enumerate columns in an interesting table.
- Dump the fields of that table.
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 SQL injection is when user input is placed into a database query without being properly separated, so an attacker can change the query's meaning. Here the locale value in a web request was not handled safely, letting the tester ask the database to reveal its structure and contents.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.