Skip to content
SQL injection Write-up Intermediate

Analyzing a High-Severity SQL Injection Vulnerability in a Production Environment (Silently…

A GET parameter was not sanitised before reaching a MySQL database, allowing time-based blind SQL injection. An attacker could use delays to confirm the flaw and potentially enumerate the database.

vanshrathore64 Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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 could have led to full database enumeration or unauthorised interaction with the backend, though the researcher limited testing to time delays and performed no data extraction.

What the attacker needed

Access to the client-side portal; ability to send GET requests

The fix

The vulnerability was silently patched by the company, and the text recommends parameterised queries as mitigation.

How it was found

  1. Send a normal request to the endpoint with the action parameter and note the fast response.
  2. Send a request with a crafted SQL command in the action parameter that includes a sleep function.
  3. Observe a consistent eight-second delay, confirming the injection.
  4. Use the Ghauri tool to confirm the injection point across many requests.

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.

SQL injection is when user input is inserted into a database command without being treated as plain data, so an attacker can change the command. Here the tester sent a value that made the database wait eight seconds, proving the input reached the database unsafely. This is called blind because the attacker sees only timing, not the data itself.

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 vanshrathore64

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.