A one-click universal XSS issue was identified in uBlock Origin. This vulnerability allowed a malicious website to manipulate the extension into adding arbitrary trusted filters. These trusted filters could then inject JavaScript code into other web pages, enabling the malicious site to execute arbitrary JavaScript within the context of any website.
The primary vulnerability affected the MV2 Firefox version of uBlock Origin. A similar, though less severe, issue was also present in the MV3 version, uBO Lite. The issue has since been resolved, and further details are available in the GitHub advisory.
The attack exploited uBlock Origin's element picker, which is implemented via an injected iframe. The malicious website would first determine the element picker's URL, then embed it in an invisible iframe. It would then programmatically drive the picker to insert a desired filter and position the invisible iframe to trick the user into clicking an invisible 'Create' button, thereby installing the malicious filter.
To execute the attack, the extension's internal UUID was required. On Firefox, this UUID is random per installation. The attacker could extract this UUID by exploiting a default uBO filter rule (lootdest.*##+js(no-fetch-if, adsbygoogle, war:googlesyndication_adsbygoogle.js)) which hooks `fetch`. This hook makes an XHR request to a URL containing the extension UUID, which the attacker's website could then intercept by hooking `XMLHttpRequest.prototype.open`.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
A universal cross-site scripting (XSS) vulnerability was discovered and fixed in uBlock Origin, affecting both its MV2 Firefox version and MV3 uBO Lite. The flaw allowed malicious websites to inject arbitrary JavaScript into any site by tricking the extension into adding trusted filters, which could then execute code in the context of other pages.