Universal XSS in uBlock Origin from website-driven element picker iter.ca · 197 ...
HN Best 30 @best30
Universal XSS in uBlock Origin from website-driven element picker iter.ca · 197 points · 50 comments · HN thread
TL;DR Security researcher iter.ca describes a one-click universal XSS in uBlock Origin's MV2 Firefox build, found with help from GPT-5.6 Sol. A malicious website could drive the extension's element picker, hidden in an invisible iframe, to add arbitrary trusted filters that inject JavaScript into any site. The issue is fixed in uBO 1.75.4 (advisory GHSA-cmqw-9r2w-6wv2); uBO Lite was affected to a lesser degree.
- The element picker runs as a moz-extension:// iframe that accepts messages from the page, letting a website send it filters to add.
- The attacker first learns the random per-installation extension UUID, leaked via a default no-fetch-if filter rule from uAssets that makes an XHR to a web-accessible resource.
- By putting a newline in the picker's opt field, the attacker injects a trusted filter such as a trusted-rpnt scriptlet, which runs arbitrary JS on any domain.
- Filters added through the picker are trusted until a recompile, so the attacker can use them immediately.
- The attack needs only one click, since the picker iframe can be made invisible (opacity 0) and overlaid by the malicious page.
- Fixes include a secret handshake password between the content script and the picker; affected versions are 1.75.2 and lower for uBO, and users should update to 1.75.4 or later.
Discussion The thread mixes security alarm with broader debate about browser extensions. Many commenters focus on the architectural cause: extensions must inject UI into the page DOM, which exposes them to the page. Others argue about whether Shadow DOM or sandboxed iframes actually protect against this, and a few use the thread to take aim at Manifest V3 or at uBlock Origin's broad permissions. A recurring side discussion concerns the disclosure's AI authorship disclaimer, which drew both praise and dismissal. Version confusion (1.75.4 versus later builds) was sorted out early. The mood is serious and technical, with some sarcasm about privacy and ads.
- Extensions injecting UI into page DOM is an inherent design flaw (many): Commenters say extensions should keep their interfaces out of the page context, since page scripts can observe or manipulate anything placed there. Password managers and similar tools are cited as examples of data leaking to the site.
- The fix is simple: move the create-rule UI into browser chrome (some): One commenter asks why the element picker's create button isn't rendered in the browser UI rather than the website DOM, suggesting the problem is solvable by design.
- Manifest V3 vindicated by this bug (some): Several commenters say the incident supports MV3's restrictions. Others reply that MV3 ad blocking with DNR works fine for most extensions and that uBO Lite's broad permissions are the real concern.
- Shadow DOM is not a real security boundary (a few): A commenter cites MDN and research showing open shadow roots and extensions can bypass encapsulation, arguing that closed shadow DOM is only a partial defense.
- The sandboxed iframe means the leak is not real (a few): One commenter disputes the leak, saying the injection occurs in a sandboxed iframe protected by the same-origin boundary used against cross-site framing.
- Extensions in general are too risky to trust (some): Some argue that browser extensions with deep page access are a poor trade-off, citing malware and infostealers. Others point out that websites themselves also run untrusted code.
- DNS-based blocking or a different browser is preferable (a few): Some users say they have stopped using browser ad blockers and rely on DNS filtering, though others reply that DNS blocking fails on YouTube and similar sites.
- The AI-authorship disclaimer builds trust (a few): A commenter appreciates the note that the author wrote the prose while AI produced the proof of concept. Another says they would ignore AI-written articles regardless of disclaimers.
Links from the comments
- GitHub security advisory listing affected versions (1.75.2 and lower) and the patched version 1.75.4.
- Report of 1Password injecting prism.js globally on all pages, breaking code blocks for about 20 days.
- MDN page on open versus closed shadow DOM and why it is not a strong security mechanism.
- Lists Chromium extensions with static, enumerable web-accessible resource URLs.
#security #browserExtensions #uBlockOrigin #xss #manifestV3 #firefox