Skip to content
SQL injection Write-up Beginner

HUNT for SQL Injection- The Smart Way!

A login page was vulnerable to SQL injection, allowing an attacker to bypass authentication and dump the entire database. The author used a simple payload and then SQLmap to extract data.

Mudassir Sharief Follow

Published on medium.com

Hello Readers, Welcome to my first post, in this Post i will show how to hunt for the Classic SQL injection. Yes, the classic SQL injection vulnerability still exists and i dumped the whole DB.

Mudassir Sharief, 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 login form did not properly sanitise user input before using it in a SQL query, allowing injection.

Impact

An attacker could bypass authentication and dump the entire database, potentially exposing sensitive information.

What the attacker needed

Target with a login page; SQL injection vulnerability present

How it was found

  1. Use a Google dork to find login pages on the target domain.
  2. Send SQL injection payloads to all login pages using Burp Intruder.
  3. Look for SQL errors in the responses.
  4. If an error appears, run SQLmap on the request to exploit 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.

SQL injection is when a website puts user input directly into a database command, so an attacker can trick the database into revealing or changing data. Here, the login form was vulnerable, and the attacker could log in without a password and then read all the data in the database.

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 Mudassir Sharief

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.