The "Doctrine Classique" of Websecurity and the inner HTML Apocalypse
summary
Browsers mutate HTML set via innerHTML mutations so valid-looking attributes and CSS escapes turn into live payloads: backtick attribute delimiting in IE and decoded CSS escapes both convert quoted values into executable JavaScript (demos change location.hash and run expression()), and many filters (HTMLPurifier, Caja, Google Caja, others) accept the input. Code search finds 1.2 million GitHub projects and an Alexa 10K crawl shows 75% of index pages use innerHTML. A slow client-side fixer called trueHTML intercepts innerHTML and mitigates the class of MXSS attacks.
AI-written summary · about
