Finding and Fixing DOM-based XSS - with Static Analysis
summary
Static analysis via an eslint rule flags DOM sinks (assignments to innerHTML/outerHTML, insertAdjacentHTML, document.write) and treats sanitizer calls and literals as safe; adoption in a large codebase drops thousands of findings to 34 lint violations and surfaces a handful of real DOM‑based XSS bugs that get fixed. A Sanitizer API prototype and gradual CI/linter rollout integrate with TypeScript and Electron workstreams and proves practical and actionable.
AI-written summary · about
chapters (6)
- 0:00Intro
- 7:14Static vs Dynamic Analysis
- 9:51Static Analysis with eslint
- 14:55How to avoid false positives
- 18:05Evaluation
- 22:25Sanitizer API
related talks
40mClient-Side Protection Against DOM-Base...
01h 01mClient-Side Protection Against DOM-Based XSS Done Right (tm)
23mJavaScript attack surface
42mDon't trust the DOM: Bypassing XSS mitigations via script gadgets
57mThe Last XSS Defense Talk
42mEverything you need to know about client-side malicious code execution
41mNew Methods in Automated XSS Detection
32mWriting Secure JavaScript Code
