Skip to content
SQL injection Write-up Intermediate

How I found a SQL Injection bug in using my cellphone.

A forgot-password endpoint was vulnerable to time-based SQL injection, but a WAF blocked exploitation. The hunter found the origin IP via Shodan and confirmed the injection without the WAF.

Naeem Ahmed Sayed Follow

Published on medium.com

Bounty$500 View original

Assalamu Alaikum I am Naeem Ahmed Sayed (0xNaeem), Part Time Bug Bounty Hunter from Bangladesh . and welcome to my story about a critical bug I found on the phone.

Naeem Ahmed Sayed (0xNaeem), 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 forgot-password endpoint passed user input into a database query without proper parameterisation.

Impact

An attacker could run arbitrary database queries, potentially reading or modifying data, though the text does not detail the data accessed.

What the attacker needed

Access to the forgot-password page; origin IP reachable without WAF

How it was found

  1. Find a forgot-password page using Google dorking.
  2. Test time-based SQL injection but the WAF blocks it.
  3. Use a Shodan dork to find the origin IP without the WAF.
  4. Send a time-based payload to the forgot-password endpoint and observe a 10-second delay.
  5. Capture the request and confirm with SQLMap.

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 login or password-reset form can be tricked into running database commands if it doesn't handle input safely. Here, a delay in the server's response showed the command worked. A firewall (WAF) normally blocks such tricks, so the hunter found the server's real address to bypass it.

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 Naeem Ahmed Sayed

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.