Skip to content
Access control Advisory Advanced CVE-2026-7952

Insufficient policy enforcement in Extensions (CVE-2026-7952)

A logic flaw in Chrome's extension Web Request API lets a compromised extension renderer bypass the webRequestBlocking permission check by forging an IPC message with a non-zero web_view_instance_id. This allows the extension to register a blocking listener that intercepts and modifies general browser traffic without the required permission.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 42 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw allows a compromised extension renderer to bypass the webRequestBlocking permission requirement. By forging an IPC message with a non-zero web_view_instance_id, an attacker can register a blocking listener for general browser traffic without the necessary permissions.

Affected files:

  • extensions/browser/api/web_request/extension_web_request_event_router.cc
  • extensions/browser/api/web_request/web_request_api.cc

Estimated timestamp from git blame: 2025-03-05

Description

A vulnerability exists in the Chrome Extensions Web Request API where a compromised extension renderer can bypass the webRequestBlocking permission check. This is achieved by exploiting an asymmetric check in ExtensionWebRequestEventRouter::ListenerMatchesRequest and a conditional permission check in WebRequestInternalAddEventListenerFunction::Run.

When registering a listener via the internal webRequestInternal.addEventListener API, the browser process checks if web_view_instance_id is non-zero. If it is, the browser verifies the extension has the webview permission but skips the webRequestBlocking check (which is normally required for blocking listeners). A compromised renderer can send a forged IPC to register a listener for a general event (e.g., webRequest.onBeforeRequest) while supplying a non-zero web_view_instance_id and the BLOCKING flag.

This places the listener into the ordinary browser traffic bucket. Later, when a general browser request occurs (request.is_web_view == false), ListenerMatchesRequest correctly skips the webview ID check but lacks a reverse filter to reject listeners that possess a non-zero web_view_instance_id. As a result, the listener matches the request, allowing the extension to block or modify general browser traffic without the webRequestBlocking permission.

Potential Steps to Reproduce

Note: Our setup does not currently have the ability to run code to verify this, but the following steps describe how an attacker would theoretically trigger the vulnerability:

  1. An attacker compromises the renderer process of an extension or Platform App that has the webview permission and host permissions, but lacks the webRequestBlocking permission.
  2. From the compromised renderer, the attacker sends a forged webRequestInternal.addEventListener IPC message to the browser process.
  3. The IPC payload specifies event_name as "webRequest.onBeforeRequest", sets web_view_instance_id to a non-zero value (e.g., 1), and includes the BLOCKING flag in the extra_info_spec.
  4. In the browser process, WebRequestInternalAddEventListenerFunction::Run evaluates if (web_view_instance_id). Since it is non-zero, it checks for the webview permission and skips the else block containing the webRequestBlocking permission check.
  5. The listener is successfully added to the active_listeners["webRequest.onBeforeRequest"] bucket.
  6. When the user navigates to a URL matching the extension's host permissions in a regular browser tab, a WebRequestInfo object is created with is_web_view set to false.
  7. ListenerMatchesRequest evaluates the listener. Because request.is_web_view is false, the webview ID matching block is skipped.
  8. The listener successfully matches the request, and the compromised extension is permitted to intercept, modify, or block the request, despite lacking the required permissions.

Suggested Fix

  1. Registration Check: In WebRequestInternalAddEventListenerFunction::Run, enforce that if web_view_instance_id is non-zero, the event_name must start with the webViewInternal. prefix (e.g., kWebViewEventPrefix).
  2. Match Check: In ExtensionWebRequestEventRouter::ListenerMatchesRequest, add a reverse filter to reject webview-scoped listeners for non-webview requests:
C++
if (!request.is_web_view && listener.id.web_view_instance_id != 0) {
  return false;
}

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. Please feel free to reach out to me if you have concerns or feedback.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an asymmetric permission check: registration skips the webRequestBlocking check when web_view_instance_id is non-zero, and request matching lacks a reverse filter to reject webview-scoped listeners for non-webview requests.

Impact

A compromised extension renderer could intercept, modify, or block general browser traffic without the webRequestBlocking permission, but the report notes the steps are theoretical and not verified.

What the attacker needed

Compromised extension renderer; webview permission; host permissions; no webRequestBlocking permission

The fix

The report suggests enforcing that non-zero web_view_instance_id requires an event name with the webViewInternal prefix, and adding a reverse filter in ListenerMatchesRequest to reject webview-scoped listeners for non-webview requests.

How it was found

  1. Compromise an extension renderer that has webview and host permissions but lacks webRequestBlocking.
  2. Send a forged webRequestInternal.addEventListener IPC message to the browser process.
  3. Set event_name to webRequest.onBeforeRequest, web_view_instance_id to a non-zero value, and include the BLOCKING flag.
  4. The browser checks the webview permission and skips the webRequestBlocking check, adding the listener.
  5. When a normal browser request occurs, the listener matches because the webview ID check is skipped for non-webview requests.
  6. The extension can then intercept, modify, or block the request without the required permission.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Chrome extensions can ask to watch or block web requests, but blocking requires a special permission. This report shows that a malicious extension could trick the browser into thinking its listener was only for a webview (an embedded browser) and then use it to block normal browsing traffic without that permission.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.