Skip to content
SQL injection Write-up Intermediate

The Critical 1000 Bug Blind Sql Injection

A parameter on a logo endpoint was vulnerable to time-based blind SQL injection, as shown by a delay in the server's response when a sleep function was injected. An attacker could use this to infer database contents or cause a denial of service by triggering long delays.

Helmiriahi Follow

Published on infosecwriteups.com

https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F7830265709557856901&displayname=Tenor&url=https%3A%2F%2Ftenor.com%2Fview%2Ftoji-fushiguro-toji-jjk-jjk2-jujutsu-kaisen-gif-7830265709557856901&image=https%3A%2F%2Fmedia.tenor.com%2FbKqxLSMeOoUAAAAN%2Ftoji-fushiguro-toji.png&type=text%2Fhtm…

Helmiriahi, on infosecwriteups.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 application inserted user input directly into a SQL query without proper sanitisation or parameterisation.

Impact

An attacker could infer database contents and potentially cause a denial of service by forcing long delays, though the text only demonstrates a short delay and a 504 timeout.

What the attacker needed

Access to the logo endpoint; no WAF blocking the payload

How it was found

  1. Send a request to the logo endpoint with a normal reference value and measure the baseline response time.
  2. Inject a payload that includes a conditional sleep function and measure the response time.
  3. Observe that the response time increases, confirming the injection.

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.

The website had a hidden database query that could be tricked into pausing for a few seconds if the attacker inserted special code. By measuring how long the site takes to respond, an attacker can ask yes/no questions and slowly extract information from the database. This is called blind SQL injection because the attacker does not see the database output directly.

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 Helmiriahi

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.