Search

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

Advertisement
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."

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
 
Show Full Article
Please wait...
Advertisement

Related Stories

Popular Mobile Brands
  1. Vivo Y300c With 6,500mAh Battery, MediaTek Dimensity 6300 SoC Launched
  2. WWDC 2025 Live Updates: Apple Expected to Announce iOS 26, macOS 26 and More
  3. ROG Xbox Ally and ROG Xbox Ally X Handhelds Unveiled at Xbox Games Showcase
  4. Samsung Galaxy Z Fold 7, Z Flip 7 Unpacked Event Said to Be Held Mid-July
  5. iOS 26 May Feature "Liquid Glass" Elements Throughout the User Interface
  6. iQOO 13 and More Available With Discounts During iQOO 5th Anniversary Sale
  7. Apple Researchers Find 'Accuracy Collapse' Problem in AI Reasoning Models
  8. Bitcoin Trades at $105,000 as Market Consolidates, Altcoins See Losses
  1. iQOO 13, iQOO Neo 10 and More Available With Discounts During Company's 5th Anniversary Sale
  2. Cybersecurity Researchers Find 20 Crypto-Phishing Apps on Google Play Store: Check List
  3. Oppo Find X9 Series Said to Get Flat Screens; X9 Ultra Tipped to Feature Dual-Periscope Cameras
  4. Gemini App Is Getting a New Scheduled Actions Feature on iOS and Android
  5. Realme Narzo 80 Lite 5G India Launch Teased; to Be Priced Under Rs 10,000 and Pack a 6,000mAh Battery
  6. Crypto Price Today: Bitcoin Trades at $105,000 as Market Consolidates, Altcoins See Small Losses
  7. Apple Claims AI Reasoning Models Suffer From ‘Accuracy Collapse’ When Solving Complex Problems
  8. WhatsApp for Android Said to Be Testing Auto-Download Quality for Photos and Videos
  9. Vivo Y300c With 6,500mAh Battery, 50-Megapixel Dual Rear Cameras Launched: Price, Specifications
  10. AI Reveals Mars’s Mysterious Slope Streaks Likely Formed by Dust, Not Water Activity
Gadgets 360 is available in
Download Our Apps
App Store App Store
Available in Hindi
App Store
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.
Trending Products »
Latest Tech News »