← Mon, Nov 16 digest

Universal XSS in uBlock Origin from website-driven element picker

read article ↗ hn thread ↗

A recently patched universal XSS vulnerability in uBlock Origin allowed malicious websites to inject arbitrary trusted filter scripts via the extension's element picker.

read it It provides a clear, technical breakdown of how an extension vulnerability was chained using UUID leaks and element picker message manipulation.

summary

The author details a critical universal cross-site scripting flaw in uBlock Origin where malicious sites could abuse the element picker feature to inject arbitrary trusted scripts. By hooking internal XHR requests, a malicious website could steal the extension's random installation UUID, embed the element picker in an invisible iframe, and exploit missing input validation in the option fields. This allowed the injection of trusted filter rules that execute arbitrary JavaScript in the context of any page. The issue has since been patched in version 1.75.4.

key points

  1. Malicious websites could extract the random extension installation UUID by hooking XHR requests triggered by internal ad-substitution filters.
  2. Attackers could iframe the element picker UI and abuse the option field using a newline injection to smuggle arbitrary trusted scriptlet filters.
  3. The vulnerability affected the Firefox MV2 version of uBlock Origin and partially impacted uBO Lite, both of which received security patches.

who should read it

Security engineers and extension developers interested in browser security architecture.

discussion mixed

consensus

Commenters focused heavily on the irony that an ad blocker vulnerability could expose a unique installation UUID for tracking, while debating the security risks of extensions injecting interfaces into website DOMs.

pushback

A minority of commenters expressed broader skepticism toward the security model of browser extensions altogether, noting that widespread privileges make them inherently risky.

best comment by ethersteeds ↗

> But the attacker website can itself hook the XHR made from inside the no-fetch-if hook to extract the random extension UUID.

Oh great. I recently learned[0] that some Firefox extensions can be tricked into leaking their install-unique UUID, which can then be used as a tracking identifier. Today I learn that any site can get my unique uBO UUID by hooking fetch('/adsbygoogle.js').

That is... an ironic disaster.

[0] https://news.ycombinator.com/item?id=50454639

It emphasizes the ironic privacy implication that trying to block ads could leak a stable tracking identifier via extension UUID exposure.

Generated by an LLM from the article and thread. Check the sources before relying on it.