Security Playbook
Labs

Labs: attack a fake app, then fix it

A simulated browser with DevTools against an in-browser fake shop. Pull off the attack, deploy the patch, watch it fail.

Everything here is for learning to defend your own software. Never test systems you don't own or aren't authorized to test.

L01Easy

Read someone else's order

Change one number in the URL and see a stranger's address and phone.

Access control & IDOR · 3 min
L02Easy

Log in as the admin without a password

A login form that builds its SQL by pasting strings together.

SQL injection · 4 min
L03Medium

Steal the moderator's session

Reviews are rendered as raw HTML, and an admin reads every new one.

XSS · 4 min
L04Medium

Promote yourself to admin

The profile form only has name and avatar. The API saves whatever it gets.

Access control & IDOR · 4 min
L05Easy

Pay one cent for headphones

The checkout trusts the total that the browser sends.

Threat modeling · 3 min
L06Medium

Forge an admin token

The session is a JWT. The server reads it, but does it check it?

JWT · 5 min
L07Easy

Download the server's secrets

Invoice downloads take a file name from the query string.

Path traversal · 3 min
L08Hard

Steal the server's cloud credentials

"Import avatar from URL" fetches anything, from inside the cloud network.

SSRF · 5 min