One-click security hole found in uBlock Origin
A security flaw in the ad blocker uBlock Origin could have let a malicious website run code on any site after a single click. According to the report, the issue affected the Firefox MV2 version of the extension, while the MV3-based uBO Lite saw a similar but less serious problem. The flaw has now been fixed.
The problem sat in the element picker, a tool users open to block items on a page. It works by embedding an internal extension page in an iframe and talking to the background script to add new filter rules. According to the researcher, the picker accepted those messages from attacker-controlled sites as well.
The article explains that a malicious site first leaks the extension's per-install internal ID, then opens the picker in an invisible iframe and makes it add a filter of its choosing. Scriptlet rules, which the picker normally refuses, could be smuggled in by inserting a newline into a field. That let the attacker site run its own code in the context of another site.
For users, the practical takeaway is that the attack needed just one click. According to the report, a site could overlay the picker frame on the page or make it transparent. Keeping the extension updated and being careful with clicks on unfamiliar pages therefore matters. Details of the fix are in the extension's GitHub advisory.