Interactive course
Application & Web Security
Master hands-on Attack & Defend security inside real browser engines: exploit and patch SQL injection in Postgres WASM, harden authentication, JWTs and Web Crypto in the JS sandbox, eliminate XSS, ReDoS and path traversal, and lock down Linux servers.
Exploit flaws first, then build the patch across real SQL, JS, Crypto, Regex and Linux sandboxes.
01 · Security Mindset & Trust Boundaries
Why vulnerabilities happen at trust boundaries, why normalization must precede validation, and how least privilege contains blast radius.
- 1.1Threat Modeling & Least PrivilegeMap trust boundaries, model real failure modes with STRIDE, and shrink blast radius before writing code.~14 min
- 1.2Encoding & Normalization BugsBypass a naive string check via URL encoding, then enforce canonical normalization before validation.~15 min
- 1.3Leaked Secrets & File PermissionsDetect accidentally logged credentials with regex and lock down world-readable secret files on Linux.~14 min
02 · Injection & Database Security (PostgreSQL)
Attack and patch real PL/pgSQL functions inside PGlite: authentication bypass, UNION exfiltration, ORDER BY injection and multi-tenant isolation.
- 2.1Auth Bypass via SQL InjectionBreak an unsafe string-concatenated login function, then patch it cleanly with EXECUTE ... USING parameters.~16 min
- 2.2UNION Exfiltration from SearchExtract hidden API keys via UNION SELECT from a search helper, then lock down column access with bound parameters.~16 min
- 2.3Dynamic ORDER BY & Identifier InjectionUnderstand why query parameters cannot bind column names, exploit dynamic sorting, and build an allowlist.~15 min
- 2.4SQL Multi-Tenancy & Row-Level IDORRead another tenant invoice through a missing authorization predicate, then enforce row-level ownership.~15 min
03 · XSS, CSP & Client-Side Security
Exploit DOM injection sinks, bypass naive escaping inside attributes and URIs, lock down scripts with strict CSP nonces, and eliminate prototype pollution.
- 3.1Injection Sinks & Context-Safe HTML EscapingExplore HTML vs attribute vs script sinks interactively, craft a scriptless XSS payload, and write full entity escaping.~15 min
- 3.2Attribute, javascript: URI & Scheme AllowlistsBypass HTML escaping through href injection, then lock down link targets with strict URL protocol allowlisting.~15 min
- 3.3Content Security Policy (CSP) & Trusted NoncesAudit unsafe CSP directives like unsafe-inline, simulate inline script blocking, and generate strict nonce-based policies.~15 min
- 3.4Prototype Pollution in Deep MergePollute Object.prototype through recursive JSON merging, then harden deep merge helpers against prototype keys.~15 min
04 · Authentication, Sessions, JWT & Access Control
Prevent CORS reflection and CSRF attacks, close BOLA/IDOR and mass-assignment gaps, break alg:none JWTs, and verify tokens with Web Crypto.
- 4.1Cookies (HttpOnly/SameSite), CORS & CSRFSimulate cookie theft and cross-site requests, bypass suffix-based origin checks, and enforce exact Origin allowlists.~16 min
- 4.2BOLA / IDOR & Mass AssignmentEscalate privileges by sneaking role fields into Object.assign, then build strict DTO allowlists and tenant ownership checks.~15 min
- 4.3Breaking Weak JWTs (alg: none & Claims)Tamper JWT headers and role claims interactively, forge an unsigned alg:none token, and enforce strict header algorithm pinning.~15 min
- 4.4Verifying & Signing JWTs with Web CryptoDemonstrate signature invalidation on payload tampering and implement asynchronous HMAC-SHA256 JWT verification with Web Crypto.~16 min
05 · Applied Cryptography in Browser & Node
Eliminate delimiter-collision MAC bugs with HMAC-SHA256, stretch passwords with PBKDF2 + random salts, prevent AES-GCM nonce reuse, and compare secrets in constant time.
- 5.1Integrity with HMAC vs Broken Prefix HashingExploit canonical boundary collisions in naive SHA-256 concatenation, then sign and verify payloads properly with HMAC-SHA256.~15 min
- 5.2Password Storage: Fast Hashes vs PBKDF2 + SaltDetect identical reused passwords in unsalted SHA-256 dumps, then implement PBKDF2 key stretching with random 16-byte salts.~16 min
- 5.3Authenticated Encryption (AES-GCM) & Nonce ReuseRecover plaintext without the key when AES-GCM reuses an IV, then build safe encrypt/decrypt helpers with random 96-bit IVs and AAD.~16 min
- 5.4Timing Side-Channels & Constant-Time CompareExtract an 8-character secret via an early-exit comparison oracle, then implement branch-free XOR constant-time byte comparison.~16 min
06 · Input Validation, Path Traversal, ReDoS & SSRF
Break naive substring cleansers with path traversal, catch catastrophic regex backtracking statically and via linear patterns, audit repo secrets, and stop SSRF/open redirects.
- 6.1Path Traversal (../) in File ServersBypass naive string replacement filters, then enforce canonical path resolution pinned strictly inside a base directory.~15 min
- 6.2ReDoS: Quantifier Bombs & Safe PatternsDetect nested quantifier ReDoS traps statically and rewrite vulnerable slug validators into deterministic linear patterns.~15 min
- 6.3Secret Hygiene & CI Pattern ScannersWrite high-signal CI regex scanners for AWS keys, PATs, and private keys, then implement automated secret redaction for logs.~14 min
- 6.4Open Redirects & SSRF URL Parsing TrapsExploit userinfo URL confusion against metadata endpoints, then lock down outbound webhooks and local redirect paths.~16 min
07 · Linux Server Hardening & Forensics
Investigate web and SSH compromises inside realistic Linux logs, lock down leaked secrets and SSH keys, terminate rogue processes, and run full incident drills.
- 7.1Breach Forensics in Nginx & Auth LogsIsolate SQLi/traversal requests from attacker IP 203.0.113.42 in Nginx logs and extract SSH brute-force attempts from auth.log.~14 min
- 7.2Locking .env, SSH Keys & World-Writable FilesAudit permissive 0777 and 0644 secret files, restore proper ownership with chown, and restrict keys cleanly with chmod 600.~15 min
- 7.3Spotting & Killing Malicious PersistenceTrace rogue Python workers via ps aux, terminate the offending PID, and eradicate persistent webshell scripts from disk.~14 min
- 7.4Live Server Lockdown DrillRun a complete post-breach server remediation: archive incident alerts, lock .env permissions, and purge uploaded backdoors.~16 min
08 · Secure Code Review & Red-vs-Blue Capstone
Eliminate error stack leaks with correlation IDs, audit and patch multi-flaw API handlers, and complete the three-engine Attack & Defend capstone.
- 8.1Safe Error Handling & Correlation IDsStrip internal SQL messages and stack traces from API responses while preserving safe validation errors and request trace IDs.~20 min
- 8.2End-to-End Patch: Vulnerable API HandlerExploit combined mass assignment, path traversal, and CORS flaws on an API handler, then implement a full defense-in-depth patch.~22 min
- 8.3Final Capstone: Break It, Then Lock ItProve cross-disciplinary mastery across PGlite SQL parameterization, Web Crypto Encrypt-then-MAC webhooks, and Linux host containment.~26 min
09 · OAuth 2.1, OIDC & Federated Login Flows
Prevent authorization code interception, Login CSRF, redirect URI bypasses, and cross-app OIDC token confusion using PKCE S256 and strict claim pinning.
- 9.1PKCE S256 & Anti-CSRF state HandshakeReproduce OAuth Login CSRF callbacks and verify Web Crypto SHA-256 PKCE challenges alongside constant-time state binding.~20 min
- 9.2Exact redirect_uri Pinning & Token LeakageBypass prefix redirect validation, then enforce canonical HTTPS origin+pathname equality and Referrer-Policy safeguards.~20 min
- 9.3OIDC id_token Claims: iss, aud & nonceExploit cross-application OIDC audience confusion and implement a strict fail-closed issuer, audience, azp, nonce, and expiry verifier.~22 min
10 · Race Conditions, Atomic SQL & Rate Limiting
Eliminate TOCTOU double-spend races with atomic PostgreSQL UPDATE predicates, idempotency keys, and spoof-resistant sliding-window limiters.
- 10.1TOCTOU Races & Atomic SQL UPDATE GuardsReproduce async check-then-act double spends and eliminate race windows with single-statement PostgreSQL row-locked predicates.~22 min
- 10.2Idempotency Keys & Replay ProtectionPrevent duplicate transfers across retries using PostgreSQL UNIQUE constraints, ON CONFLICT DO NOTHING, and atomic ledger updates.~22 min
- 10.3Sliding-Window Rate Limiting & IP SpoofingDefeat forged X-Forwarded-For spoofing and fixed-window boundary bursts with rightmost trusted proxy extraction and sliding logs.~20 min
11 · Software Supply Chain & CI/CD Hardening
Detect CI workflow script injections, pin immutable dependencies with W3C SRI digests, and lock down rogue postinstall lifecycle hooks.
- 11.1CI/CD Workflow Script Injection (${{ ... }})Hunt dangerous GitHub Actions expression injections in run commands and move untrusted PR inputs cleanly into env bindings.~20 min
- 11.2Subresource Integrity (SRI) & Digest ChecksCompute W3C sha256 Base64 integrity hashes with Web Crypto and block tampered external artifacts before execution.~20 min
- 11.3Auditing Rogue postinstall & Build TamperingAudit suspicious package.json lifecycle scripts on Linux VFS, enforce ignore-scripts=true, and purge malicious droppers.~22 min
12 · AI / LLM Application Security (OWASP LLM Top 10)
Defend GenAI features against indirect prompt injection, cross-tenant RAG SQL leakage, unsafe agent tool calling, and Markdown link XSS.
- 12.1Prompt Injection & Delimiter IsolationBreak out of naive prompt wrappers via tag smuggling, then isolate external inputs with delimiter escaping and precedence rules.~20 min
- 12.2Multi-Tenant RAG Isolation in SQLReproduce cross-tenant RAG secret exposure on PGlite and enforce parenthesized tenant_id isolation plus safe column projection.~22 min
- 12.3Tool-Call Allowlists & Output EncodingGate AI function calling strictly via typed schemas and sanitize model-generated Markdown links against javascript: XSS.~22 min
Paths featuring Application & Web Security
Recommended next courses
Application & Web Security FAQ
How many lessons and hands-on exercises are in Application & Web Security?
Application & Web Security covers 12 modules, 42 interactive lessons, and 252 practical exercises (~12 hours total) with instant automated validation.
Do I need local setup or IDE installation for Application & Web Security?
No installation required: every exercise and the interactive Application & Web Security playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.
Is Module 1 of Application & Web Security free without creating an account?
Yes. Module 1 (“Module 1 — Security Mindset & Trust Boundaries”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.
Which career learning paths include Application & Web Security?
Application & Web Security is a core building block of Application Security & AppSec, targeting roles such as Application Security Engineer · Security-First Full-Stack.