Skip to content
SQL injection Write-up Intermediate

My First Blind SQL Injection

A subdomain endpoint was vulnerable to time-based blind SQL injection, allowing an attacker to delay the server's response by a chosen number of seconds. The reporter confirmed the vulnerability by observing the exact delay specified in the payload.

T VAMSHI Follow

Published on medium.com

I was hacking on a big scope target, I started by collecting the subdomains of the target from the different resources.

T VAMSHI, 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 application inserted user input directly into a SQL query without proper parameterisation or validation.

What the attacker needed

Access to the target subdomain; ability to send crafted requests

How it was found

  1. Collected subdomains using various tools and resolved them to find web services.
  2. Manually opened subdomains and spidered the chosen host with Burp Suite to get endpoints.
  3. Sent all endpoint requests to Burp Repeater and manually injected time-based SQL payloads.
  4. Found an endpoint that delayed the response by the exact time specified in the payload.

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.

Blind SQL injection is when an attacker can't see database output directly but can ask yes/no questions through the app's behaviour. Here, the attacker made the database wait for a set time if a condition was true, proving the injection worked. This let them confirm the flaw without seeing any data.

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 T VAMSHI

View all

1 more disclosed report, 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.