Security Playbook
Playground

Playground: think like an attacker

Two kinds of challenges with instant feedback: threat-model real architectures, and review code to find the vulnerable line.

Threat modeling challenges

All threat models β†’

Real architectures from the System Design Playbook. Tap components and data flows, pick the STRIDE threat, then choose the mitigation.

Find the bug

Short code reviews: spot the vulnerable line, name the problem and pick the fix.

01EasySQL injectionA login that reads the emailroutes/login.tsReview β†’02EasyXSSProduct reviews with formattingcomponents/Review.tsxReview β†’03EasyAccess control & IDORDownload your invoiceapp/api/invoices/[id]/route.tsReview β†’04MediumSSRFImport avatar from a URLapp/api/avatar/route.tsReview β†’05EasyPath traversalDownload a CSV exportroutes/exports.tsReview β†’06EasyPassword storageSign up with a salted hashlib/users.tsReview β†’07MediumJWTAdmin-only middlewaremiddleware/auth.tsReview β†’08MediumSessions & cookiesSetting the session cookieroutes/session.tsReview β†’09MediumAccess control & IDOREdit your profileapp/api/me/route.tsReview β†’10HardCSRFOne-click account deletionroutes/account.tsReview β†’