A security researcher found that a malicious website could abuse uBlock Origin's element picker in the Firefox (MV2) version to add arbitrary trusted filters and run JavaScript on any site; the flaw has been fixed.
A similar but less serious issue also affected uBO Lite, the MV3 version. The element picker runs in an extension iframe that accepted messages from the attacking page. The attacker first needed the extension's random per-installation UUID, which a default filter rule could leak through a hooked request, and then drove the picker to add a filter. A newline placed in the request-type field smuggled in a trusted script-injecting filter that the picker's normal restrictions would have blocked. Because filters from the picker are treated as trusted, the page could inject code into other sites, and one of the fixes is a secret that only the real picker receives from the content script. The researcher said an AI model did most of the work of finding the issue and that he verified it.
Sources
