Test extension UI that renders page-controlled class names as HTML
Extensions that build their own UI from the DOM of the page you are visiting, such as element pickers or inspectors, often concatenate an element's tag name, id and class names into an HTML string before rendering it. Class names accept almost any character except whitespace, so a page can smuggle markup through them even though a class looks harmless. Load a page on target.com with an element whose class is x<img src=x onerror=alert(document.domain)>, then invoke the extension's picker on that element and check whether the handler fires in the extension's context instead of the page's. Execution there means page-controlled data reached an HTML sink inside a privileged component, which is much worse than a plain page XSS.
<div class='x<img src=x onerror=alert(document.domain)>'></div>Follow #browser-extension or #dom-xss for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.