Static

Universal XSS in uBlock Origin from website-driven element picker

First reported by Iter.ca ·

The signal ●○○○ Compiled by AI from Iter.ca and Hacker News
Why you might care

If you use uBlock Origin, your browser is now protected from a vulnerability that could have injected arbitrary JavaScript into any site you visited.

What happened

A universal cross-site scripting (XSS) vulnerability was discovered in the uBlock Origin browser extension, specifically in its website-driven element picker feature. This flaw allowed a malicious website to trick the extension into adding arbitrary trusted filters. These trusted filters could then be used to inject JavaScript code into any webpage in the context of that site. The vulnerability was present in the MV2 Firefox version of uBlock Origin, with a less severe similar issue affecting the MV3 version, uBO Lite. The issue has since been fixed. The discovery involved a process where an attacker could extract the extension's internal UUID, embed a malicious element picker iframe, and manipulate it to create a trusted filter that injected arbitrary JavaScript. The element picker itself was vulnerable to messages from untrusted sources, allowing the injection of scriptlet filters.

What it means

The exploitation of a cross-site scripting vulnerability in uBlock Origin's element picker highlights a critical security oversight in how browser extensions handle user-generated input and internal component communication. By tricking the element picker into accepting malicious filter rules, attackers could bypass security measures and execute arbitrary code within the trusted context of any website. This underscores the ongoing challenge of securing complex browser extensions, especially those that interact with web content and have privileged access.

This incident signals a need for more robust input validation and sandboxing mechanisms within browser extensions, particularly for features that allow dynamic rule creation or interaction with internal extension components. Developers must ensure that all communication channels, including iframes and message passing, are strictly authenticated and validated to prevent unauthorized actions. Users should remain vigilant about keeping their extensions updated, as patches are crucial for mitigating such sophisticated threats.

AI-written summary. May contain errors.

Universal