~/talk

Sanitize Client-Side: Why Server-Side HTML Sanitization is Doomed to Fail

links:none on file
slides:none on file

Claim: server-side HTML sanitization repeatedly fails because parsing and serialization differ across HTML versions, parsers and browsers, and real-world sanitizers share the same buggy components. Examples: HTML5 comment handling and parse/serialize round‑trips turn harmless server DOMs into active XSS in browsers. Multiple PHP sanitizers become bypassable when they rely on libxml2, several projects fail to patch or misconfigure filters, and the practical mitigation is client-side cleanup with tools like DOMPurify or the upcoming sanitizer API.

AI-written summary · about

  1. 0:00Introduction and XSS recap
  2. 0:57Understanding HTML sanitizers
  3. 4:27Impact of XSS vulnerabilities
  4. 5:21Client-side vs server-side
  5. 9:05The core parsing challenge
  6. 11:57Parser issues and reality
  7. 18:58Disclosure and future outlook
  8. 25:58Closing and recommendations
~/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.