Universal XSS in uBlock Origin from website-driven element picker iter.ca · 129 ...

@best

Universal XSS in uBlock Origin from website-driven element picker iter.ca · 129 points · 24 comments · HN thread

TL;DR The author of iter.ca reports a one-click universal XSS in the Firefox MV2 version of uBlock Origin: a malicious website can drive the extension's element picker, which is embedded as an iframe, to add arbitrary trusted filters that inject JavaScript into any site. The issue is fixed; the post says GPT-5.6 Sol found it and the author verified it, with Claude writing most of the proof-of-concept code.

  • The element picker is loaded from a moz-extension:// URL whose UUID is random per install but can be leaked by a page.
  • A default uAssets rule (no-fetch-if for adsbygoogle.js) makes an XHR to a web-accessible resource that a page can hook to read the extension UUID.
  • The picker accepted postMessage commands from any page; a newline in the 'opt' field let an attacker append a trusted scriptlet filter such as trusted-rpnt.
  • Filters added through the picker are treated as trusted until the next recompile, so the attacker can inject scripts into arbitrary domains.
  • The attack needs one user click on an invisible iframe button; the fix adds a secret handshake password the content script passes to the picker.
  • uBO Lite (MV3) was affected by a similar but less severe issue. Fixed versions are uBlock Origin 1.76.4 and uBO Lite 2026.1110.1816 or later.

Discussion The thread mixes security alarm with broader criticism of extensions injecting UI into web pages. Commenters discuss the leak of the extension UUID, which also works as a tracking identifier, and ask why the create-rule UI does not live in browser chrome instead of page DOM. Several use it to argue that content-blocking extensions with broad page access are a risk, and a few praise the post's honest disclosure that the author wrote the prose and AI wrote the PoC. Others push back on the idea that ad blockers are unnecessary, and some tangents cover Manifest V3, legacy XUL extensions, and alternatives like DNS blocking.

  • Patch and reinstall; check versions and clean profiles (some): Users are told to confirm they run 1.76.4 or later and uBO Lite 2026.1110.1816 or later. One suggests a fresh Firefox profile with a new UUID and migrating bookmarks.
  • Extensions injecting UI into page DOM is a design flaw (many): Commenters argue the create-rule and password-manager interfaces should live in browser chrome, not the website DOM, since page scripts can then observe or interact with them.
  • Ad blockers are necessary for security, not just comfort (some): Some argue that ads are a security threat in themselves, so blocking them is basic protection rather than a convenience.
  • Ad blockers with broad permissions are risky (some): Others note uBO can read and modify everything on a page, so any bug in it is more dangerous. One user says they moved to DNS-based blocking.
  • Manifest V3 is to blame for weaker blocking (a few): A few comments frame the MV3 restrictions as making adblockers less effective and more secure in a ceremonial way, with one dismissive joke. This view is not defended in depth.
  • UUID leaks are a wider Firefox tracking problem (a few): One commenter links an earlier report that some Firefox extensions leak install-unique UUIDs, and notes Chromium used static resource IDs until recently.

Links from the comments

#security #uBlockOrigin #browserExtensions #xss #firefox #adblocking