Skip to content
SQL injection Disclosed report Intermediate

SQL Injection

A parameter on a staging image-rotation endpoint was passed into a SQL query without sanitisation, so boolean conditions in the value changed the response. An attacker could use true/false responses to extract database information one character at a time.

yappare Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 3 months
  • Disclosed after 3 months

The original report as published on HackerOne, by yappare. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the fid parameter was concatenated into a SQL query without parameterisation or validation.

Impact

An attacker could infer database contents, such as the database version, through boolean responses, though the text does not show extraction of user data.

What the attacker needed

Access to the staging site; a valid image id

How it was found

  1. Send a request with a condition that should be false and observe the access denied redirect.
  2. Send a request with a condition that should be true and observe the page not found redirect.
  3. Use an ORDER BY clause with increasing numbers to find the column count.

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 report has not been written yet. The Original tab links to the source.

A web page took a number from the address bar and put it straight into a database question. By adding extra conditions to that number, the tester made the page behave differently depending on whether the condition was true, which lets someone slowly guess database contents. This is called SQL injection: sneaking database commands into ordinary input.

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 yappare

View all

14 more disclosed reports, best first.

More from Uzbey

View all

The newest disclosed reports for this program.

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.