Web Application Securityintermediate3 Modules~2 Hours
Web Application Security & Browser Defense
Web Application Security · Defensive Security & Practical Engineering
Defensive web security engineering covering browser same-origin isolation, Content Security Policy nonces, XSS/CSRF prevention, SSRF mitigation, and safe server rendering.
Learning Objectives
- Eliminate stored and DOM-based XSS using allowlist HTML sanitization and CSP nonces.
- Prevent CSRF and cross-site leaks with SameSite cookies and Origin verification.
- Mitigate SSRF on server-side fetchers by validating schemes, DNS resolution, and IP ranges.
Prerequisites
Understanding of HTTP headers, cookies, HTML DOM rendering, and REST/JSON APIs.
Course Syllabus (3 Modules)
Module 1
XSS Prevention & Strict CSP Nonces
Harden HTML rendering pipelines with strict sanitization and per-request CSP nonces.
35 minModule 2
CSRF Defenses, SameSite & Origin Checks
Protect state-changing endpoints against forged cross-origin browser submissions.
30 minModule 3
SSRF Mitigation & Upload Sanitization
Block internal metadata requests and re-encode uploaded media safely before storage.
35 min