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

Advertisement

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.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Further reading: AdBlock, AdBlock Plus, uBlock
Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus 16 Software Testing Reportedly Begins; Could Launch In India Soon
  2. iQOO Neo 12 Launch Date, Colour Options Revealed
  3. Cysic Halts Bridge After 10 Million CYS Tokens Are Illegally Minted
  4. Airtel Launches Three Voice-and-SMS-Only Prepaid Recharge Plans
  5. Samsung Galaxy F70 5G With a 5,000mAh Battery Debuts in India: See Price
  1. Cysic Shuts Down Bridge After Attacker Illegally Creates 10 Million CYS Tokens
  2. JPM Coin Arrives on Ethereum as JPMorgan Expands Institutional Payments
  3. Vivo V80 FE Reportedly Spotted on BIS Certification Website, India Launch Seems Imminent
  4. Airtel’s New Recharges in India Announced: Rs. 185, Rs. 203 and Rs. 206 Voice-Only Plans Details
  5. Vivo X500 Ultra Leak Reveals Launch Timeline, Chipset, Display and Key Specifications
  6. iQOO Neo 12 Launch Date Announced; Design, Colour Options Teased
  7. Qubic Halts Chain as Attacker Exploits Weak Seeds to Drain 1,400 Wallets
  8. iPhone Duo Battery Capacity Revealed Days Before Foldable Goes on Sale
  9. Poco X8s Gets Listed on Another Certification Website, Hinting at Imminent Launch
  10. Redmi Pad 3 Spotted on Multiple Certification Sites Ahead of Launch; Key Specifications Revealed
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.