~/talk

Securing the DOM from the Bottom Up

Talkat JSNation 2019 · 2019-06-05..06-08· [security, web-platform]
slides:none on file

Google’s solution is trusted types, a browser API that replaces dangerous DOM strings with objects like trusted HTML and three others, enforced via a Content-Security-Policy directive and per-site policies. It ships behind an origin trial in Chromium, has a 66-byte minimal polyfill and larger framework patches (Angular example), and already reduces DOM‑XSS exposure by orders of magnitude in pilots. Policies and a default policy make legacy code report or fail, and lint/compile checks prevent unsafe string-to-sink assignments.

AI-written summary · about

  1. 0:00Start
  2. 1:19Google Vulnerability Reward Program payouts in 2018
  3. 6:39The idea behind Trusted Types Strongly typed DOM API
  4. 11:41Creating Trusted Types 1. Create policies with validation rules
  5. 13:50Control over policies Control policy creation
  6. 28:15Project status • Active development.looking for your feedback
~/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.