Lion Cipher Lab
Confirm SQL injection in Juice Shop with minimal proof, and fix the query
- Penetration Testing / Red Team
- Intermediate
- ~55 min
- Free · no account required
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
- confirming that input reaches SQL text by reading the code first
- using paired probes with controls so a generic error is not mistaken for injection
- explaining why a quiet single-quote result does not rule injection out
- recording a finding as demonstrated or reasoned, and rating it honestly
- writing the fix as a parameterised query and the retest that proves it
Steps in this lab
- What 'confirmed' means here, and what it does not
- Read the route first
- Build a model of the query and probe it safely
- Read the table: three lessons in five rows
- Probe the local app with a pair and a control
- Rate it, and say how sure you are
- The defender's view: what the logs show
- The fix: parameters, not escaping
- Retest: the same pair, as a check
Open the full interactive lab →