~/talk

Finding and Fixing DOM-based XSS - with Static Analysis

Talkat JSCAMP Virtual 2021 · 2021-07-15..07-16· [security, web-platform]
slides:none on file

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

  1. 0:00Intro
  2. 7:14Static vs Dynamic Analysis
  3. 9:51Static Analysis with eslint
  4. 14:55How to avoid false positives
  5. 18:05Evaluation
  6. 22:25Sanitizer API
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.