~/talk

Securing the DOM from the Bottom Up

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [web-platform, security]
slides:none on file

Chrome ships a new browser mechanism called Trusted Types that prevents DOM XSS by making sinks reject raw strings and accept only typed values; a polyfill demonstrates innerHTML throws a type error until a policy-created trustedHTML is supplied via window.trustedTypes.createPolicy. Control comes from a CSP token require-trusted-types-for 'script' plus a trusted-types whitelist so only named policies can be registered. Google reports large reductions in XSS when policy code is small and reviewed; React and DOMPurify integration already work.

AI-written summary · about

  1. 0:00Start
  2. 1:19How does DOM XSS happen?
  3. 4:41DOM XSS is hard to detect
  4. 8:11We know how to address it!
  5. 20:57Control over policies
  6. 26:10Scalable security with Trusted Types
  7. 30:13Integration examples
  8. 34:17Easy to detect
~/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.