Loophole Hunter — Security A web app security lab: 25 levels crafting XSS, SQL injection, CSP bypass, SSRF and path traversal payloads. Learn to attack so you know how to defend.
Lessons this game drills XSS (Cross-Site Scripting) Basics : XSS (Cross-Site Scripting) happens when text from a user is read by the browser as code, then runs in other people's browsers. A server that pastes…Stored vs Reflected vs DOM XSS : The three types of XSS are told apart by their source (where user data comes in) and sink (where that data is turned into HTML). Stored XSS: data saved in the…XSS Prevention & Sanitization : Turn user data into text right where it is placed. In HTML, escape five characters with entities (codes the browser shows as ordinary characters): & to &…SQL Injection Basics : SQL injection happens when user input is joined into the text of a query, so it is read as part of the SQL command. The input ' OR 1=1 -- in SELECT * FROM…SQL Injection Prevention : SQL injection is prevented by separating the query from the data. Don't join input into the text of a query. Use a ? or :name placeholder, then send the value…Password Kitchen : Mix password hashing that stands up to rainbow tables and brute force: 18 levels of salts, work factors, timing attacks and threat modeling.Pattern Defuser : Tame a regex that blows up (ReDoS) with an equivalent pattern that stays fast: 18 levels of catastrophic backtracking and nested quantifiers.Form Guard : Write validation rules that accept legit input and reject XSS or SQLi: 18 levels of input validation, allowlists vs blocklists and constraints.