by bugmen0t · 4y ago · 0 comments
I’m collaborating on an attempt to shift the responsibility for XSS from the developers and towards the browser. The current stage focuses on getting the use case "insert HTML but without any scripts" right.
There’s a public specification and prototype implementations in Firefox and Chrome. You can play with it here https://sanitizer-api.dev/
We think that we’ve made the best of many different tradeoffs, but we’re also keen to hear wide feedback.
It's usually pretty easy to not write XSS vulnerabilities, as long as you know they are a thing you need to think about.
Given that people don't bother to avoid writing XSS bugs right now, why do you think they will bother to use your tool to avoid writing XSS bugs in the future?
The hope is to also cater to frontend frameworks enough that they will adopt it. There are already some conversations.
Browsers have a track record of being able to ship security bugs for severe issues within a day or two. Compare that to patching every individual website.