NewsCrawler.org

Universal XSS in uBlock Origin from website-driven element picker

uBlock Origin's element picker showing a cosmetic filter and the Pick, Preview, and Create buttons.
Image: iter.ca

uBlock Origin is a browser extension, and this write-up covers its Firefox version, which uses MV2[1]. The MV3 version, uBO Lite, had a similar but less serious problem. In November 2026 the author found a one-click universal XSS[2] flaw in which a malicious website could make the extension add arbitrary trusted filters. Trusted filters can inject JavaScript into pages, so the site could run code in the context of any other site. The issue is now fixed, and a GitHub advisory describes it in more detail.

The element picker, which opens with a right-click and creates block rules, runs inside an iframe[3] at a moz-extension address that includes a random UUID[4] unique to each installation. A website could leak that UUID by hooking a request made by a default filter rule, then embed the picker invisibly and send it messages. By putting a newline in a field that normally holds a network request type, the attacker could add a trusted filter that injects a script.

The core problem was that the picker accepted messages from the website. The fix adds a secret password that the real picker gets from the extension. The author also noted that a site could hide the picker and trick a user into clicking the invisible 'Create' button, but did not implement that step.

Read the original iter.caDiscussion

Discussion

Commenters mostly say that extension interfaces placed in a page's DOM create risks, for example a password manager could reveal to a site which accounts the user has. Several question browser extensions in general, and one asks why the rule-creation element is not built into the browser's own interface.

Sources

  • iter.ca

    Universal XSS in uBlock Origin from website-driven element picker

    178 comments

  • KRGeekNews KO

    Firefox용 uBlock Origin, 클릭 한 번으로 다른 사이트에 스크립트 주입 가능한 취약점 패치

    1 point1 comment

Published: First seen: Читать по-русски

Open as a page