Skip to content
SQL injection Write-up Beginner

Critical Bugs: how I found critical bugs without any effort

A search feature on the target website accepted raw database queries directly instead of a normal search term, and it did so without any authentication or authorisation. An attacker could therefore read the database version, user records and almost all other data stored in the database.

albertstive1010 Follow

Published on medium.com

AHi everyone, it’s been a while, right? This time, I’m going to explain a vulnerability I discovered in the system a few days ago.

Albertstive, 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

Root cause

Likely the search input was passed straight into the database as a query, with no authentication, authorisation or input restriction in front of it.

Impact

Anyone, without an account or special rights, could read almost all data in the target's database, including user records.

What the attacker needed

No account needed; reachable search feature

How it was found

  1. Find candidate subdomains of the target using a search engine dorking query.
  2. Locate the search feature that takes a database query rather than a normal search term.
  3. Submit a simple query to read the database version and confirm it works.
  4. Submit further queries to read user records and other tables.

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.

Some websites have a search box that passes whatever you type straight to the database that stores the site's information. Normally the site checks who you are and limits what the search can do. Here it did neither, so typing a database instruction instead of a search word let anyone read private records.

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 albertstive1010

View all

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