AdBlock, AdBlock Plus, uBlock Filter Vulnerability Allows Arbitrary Code Injection in Browsing Sessions: Researcher

Advertisement
By Tasneem Akolawala | Updated: 16 April 2019 18:29 IST
Highlights
  • The vulnerability lies in $rewrite filter used in ad blocking extensions
  • It allows malicious filter authors to steal online credentials
  • AdBlock, AdBlock Plus, uBlock extensions support $rewrite filters
AdBlock, AdBlock Plus, uBlock Filter Vulnerability Allows Arbitrary Code Injection in Browsing Sessions: Researcher

AdBlock Plus first introduced the $rewrite filter last year

A new alleged vulnerability has been discovered, this time in AdBlock, AdBlock Plus, and uBlock extensions. The vulnerability exists in a filter for rewriting requests (called $rewrite filter) that was introduced in AdBlock Plus first in July last year with v3.2. Under certain conditions the $rewrite filter option apparently enables filter list maintainers to inject arbitrary code in webpages. A malicious filter author can steal online credentials, tamper sessions, or redirect pages using this vulnerability.

Security researcher Armin Sebastian discovered the vulnerability, and he claims that the problem was introduced with the $rewrite filter option that was introduced last year. This filter allows ad blockers to remove tracking data, prevent forced ads by websites, and block circumvention attempts. The $rewrite filter option allows rewrites only within the same origin, and requests of SCRIPT, SUBDOCUMENT, OBJECT, and OBJECT_SUBREQUEST types are not processed.

However, under certain conditions, the Web servers can be exploited. These conditions include that the page must load a JS string using XMLHttpRequest or Fetch and execute the returned code, and the page must not restrict origins from which it can fetch using Content Security Policy directives, or it must not validate the final request URL before executing the downloaded code. The origin of the fetched code must also have a server-side open redirect or it must host arbitrary user content. If these conditions are met with, then malicious filter authors can inject malicious code. The researcher says that Gmail and Google Images also meet these listed conditions to be exploitable, and he even demoed how the security flaw could be triggered using Google Maps.

The $rewrite filter option is available on AdBlock Plus, AdBlock, and uBlock; and together they have more than 100 million active users, Sebastian claims. He adds that the vulnerability is "trivial to exploit", and can be used to attack any sufficiently complex Web service, including Google services. He added these attacks are said to be "difficult to detect and are deployable in all major browsers."

Advertisement

As a temporary workaround, Sebastian advises users to switch to uBlock Origin as it does not support the $rewrite filter option and it is not vulnerable to the described attack. He also advices ad blocking extensions to drop support for the $rewrite filter option.

 

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

Further reading: AdBlock, AdBlock Plus, uBlock
Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus 13s With Snapdragon 8 Elite Chip to Launch in India on This Date
  2. Apple AirPods With Built-in Camera Tipped to Launch Next Year
  3. iPhone 17 Air Leak Suggests Battery Capacity, Thickness and Weight
  4. Samsung Galaxy S25 FE Tipped to Retain Galaxy S24 FE Rear Cameras
  5. Xiaomi Civi 5 Pro Design, Key Features Revealed; May Launch on May 22
  6. iQOO Neo 10 Pro+ Battery and Charging Details Revealed Ahead of Debut
  7. Android Desktop Mode Said to Debut With Android 17 on Pixel
  8. Red Dead Redemption 2 Is Reportedly Coming to Nintendo Switch 2 This Year
  9. Xiaomi 15s Pro, Xiaomi Pad 7 Ultra Will Launch in China on This Date
  1. iQOO Neo 10 Pro+ Battery, Charging Specifications Revealed; Will Be Equipped With 6,800mAh Battery
  2. Red Dead Redemption 2 Reportedly Coming to Nintendo Switch 2 in 2025 Alongside Next-Gen Patch
  3. Bitcoin Price Drops Below $103,000 Amid Ongoing Market Uncertainty
  4. Epic Games Asks Court to Force Apple to Approve Fortnite on US Store
  5. Xiaomi Civi 5 Pro Design, Key Features Revealed; Likely to Launch on May 22
  6. OnePlus 13s India Launch Date Set for June 5; Specifications, Colourways Teased Ahead of Debut
  7. Xiaomi 15s Pro, Xiaomi Pad 7 Ultra, Xiaomi YU7 Launch Date Announced; XRING 01 Chipset Spotted in Geekbench
  8. Microsoft's Phone Link Panel Arrives on Start Menu With Support for Android Devices: Report
  9. Microsoft to Support Anthropic’s Model Context Protocol to Power Multi-Agent Workflows: Report
  10. Bungie Conducting 'Thorough Review' of Marathon After Artist Accuses Studio of Plagiarism
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.