Skip to content
SQL injection Write-up Beginner

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.

Arif-ITSEC111 Follow

Published on medium.com

Bounty$5,000 View original

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.

Arif-ITSEC111, on medium.com

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

  1. Capture the trend API request in Burp and save it as a text file.
  2. Run sqlmap against the saved request to enumerate databases.
  3. Enumerate tables in the discovered database.
  4. Enumerate columns in an interesting table.
  5. 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.

More by Arif-ITSEC111

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.