Lion Cipher Lab

Confirm SQL injection in Juice Shop with minimal proof, and fix the query

Why it matters

SQL injection is a mature, well-understood weakness, and it is still reported badly. People call it on a stray error, or miss it because a quick probe was quiet, or prove it by dumping data they never needed to touch. A careful test shows that input reaches the SQL text and changes its meaning, with the least evidence that does the job, and records how sure it is. This lab shows that on Juice Shop's search route: it reads the code, builds a small safe model of the query shape, finds out in the model why a popular quick check can be quiet, and ends with the parameterised fix and a retest that…

What you'll learn

Steps in this lab

  1. What 'confirmed' means here, and what it does not
  2. Read the route first
  3. Build a model of the query and probe it safely
  4. Read the table: three lessons in five rows
  5. Probe the local app with a pair and a control
  6. Rate it, and say how sure you are
  7. The defender's view: what the logs show
  8. The fix: parameters, not escaping
  9. Retest: the same pair, as a check

Open the full interactive lab →

Keep learning