Lion Cipher Lab

Exploit SQL injection in your OWN lab (auth bypass, UNION, sqlmap)

Why it matters

You can read that SQL injection is dangerous a hundred times and still not feel it. This lab makes you feel it: on a web app running on your own machine you will type a short string into a form and watch it hand you every account in the database, password hashes and all — the exact outcome that turns a SQL-injection bug in the news into a breach of millions of records. Doing the attack once, safely, against your own target is the fastest way to truly understand the flaw, and it is the same muscle a professional penetration tester or bug-bounty hunter uses (with written authorization) to find…

What you'll learn

Steps in this lab

  1. Read this first: the one line you never cross
  2. What you're about to do (SQL injection in one breath)
  3. Stand up the target: run DVWA on your own machine
  4. Set the difficulty to Low and find the injectable page
  5. Attack 1 — authentication bypass with ' OR '1'='1
  6. Attack 2, part 1 — count the columns with ORDER BY
  7. Attack 2, part 2 — extract the password hashes with UNION SELECT
  8. Attack 3 — a taste of sqlmap (your own target only)
  9. Now go see the fix — and clean up

Open the full interactive lab →