XSS mitigation: the state of the art
summary
Demos show an attacker using BeEF payloads against a Ghost blog to add an admin user and enumerate browser info, then a defensive stack that blocks the same exploit: CSP with nonces, a Trusted Types policy named mypolicy, and sanitization via DOMPurify so innerHTML assignments fail unless passed through the policy. Talk covers CSP reporting, SRI, HTTPOnly/Secure cookies, static analysis limits in JS, and runtime/APM instrumentation as practical mitigations.
AI-written summary · about
chapters (19)
- 0:00Introduction and speakers
- 1:04XSS attack refresher
- 2:50XSS attack categories
- 4:15Web security model basics
- 5:39XSS exploitation outcomes
- 7:05Real-world XSS attacks
- 9:51Modern XSS bypasses
- 11:17Live XSS exploitation demo
- 14:07Browser-side XSS protections
- 18:25Trusted Types explained
- 20:53Live XSS mitigation demo
- 28:03Cookie security best practices
- 29:47Future of browser defenses
- 34:02Server-side XSS prevention
- 37:32React’s XSS mitigations
- 39:19Static analysis tools
- 42:48Threat modeling approach
- 46:46Defense in depth summary
- 47:27Q&A session
