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.ccextensions/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:
- An attacker compromises the renderer process of an extension or Platform App that has the
webviewpermission and host permissions, but lacks thewebRequestBlockingpermission. - From the compromised renderer, the attacker sends a forged
webRequestInternal.addEventListenerIPC message to the browser process. - The IPC payload specifies
event_nameas"webRequest.onBeforeRequest", setsweb_view_instance_idto a non-zero value (e.g.,1), and includes theBLOCKINGflag in theextra_info_spec. - In the browser process,
WebRequestInternalAddEventListenerFunction::Runevaluatesif (web_view_instance_id). Since it is non-zero, it checks for thewebviewpermission and skips theelseblock containing thewebRequestBlockingpermission check. - The listener is successfully added to the
active_listeners["webRequest.onBeforeRequest"]bucket. - When the user navigates to a URL matching the extension's host permissions in a regular browser tab, a
WebRequestInfoobject is created withis_web_viewset tofalse. ListenerMatchesRequestevaluates the listener. Becauserequest.is_web_viewisfalse, the webview ID matching block is skipped.- 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
- Registration Check: In
WebRequestInternalAddEventListenerFunction::Run, enforce that ifweb_view_instance_idis non-zero, theevent_namemust start with thewebViewInternal.prefix (e.g.,kWebViewEventPrefix). - Match Check: In
ExtensionWebRequestEventRouter::ListenerMatchesRequest, add a reverse filter to reject webview-scoped listeners for non-webview requests:
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.
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
- Compromise an extension renderer that has webview and host permissions but lacks webRequestBlocking.
- Send a forged webRequestInternal.addEventListener IPC message to the browser process.
- Set event_name to webRequest.onBeforeRequest, web_view_instance_id to a non-zero value, and include the BLOCKING flag.
- The browser checks the webview permission and skips the webRequestBlocking check, adding the listener.
- When a normal browser request occurs, the listener matches because the webview ID check is skipped for non-webview requests.
- 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.