Skip to content
SQL injection Write-up Intermediate

Blind SQL Injection in Yahoo!

The Yahoo! Sports draft endpoint inserted URL parameters directly into a backend SQL query without sanitisation. An attacker could alter the query logic and use true/false responses to infer database information.

ahmedbelahcen2018 Follow

Published on medium.com

In 2014, Stefano Vettorazzi discovered a significant vulnerability in Boolean-based blind SQL.affecting the Yahoo! Sports draft endpoint.

ab.infosec, 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

The vulnerability allowed query logic manipulation and Boolean-based inference, with potential incremental data extraction, though no direct data extraction was demonstrated.

What the attacker needed

None

How it was found

  1. Open the draft endpoint with normal year, type and round parameters.
  2. Add two dashes to the year parameter to comment out the rest of the query.
  3. Inject a Boolean condition that checks the first character of the database version.
  4. Observe that a true condition returns records and a false condition returns an empty result set.

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 website's search or filter box often builds a database query from what you type. If the site does not clean that input, you can add extra database instructions. Here the researcher added a condition that made the page show results only when a guess about the database was true, letting him learn facts one yes/no answer at a time.

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 ahmedbelahcen2018

View all

3 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.