Insufficient validation of untrusted input in Extensions (CVE-2026-11658)
A logic flaw in the browser's handling of extension webRequest allowed a compromised renderer to supply duplicate request IDs, causing map collisions. This could trick extensions into injecting sensitive cross-origin secrets, such as authentication tokens, into attacker-controlled requests.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 25 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic vulnerability in WebRequestProxyingURLLoaderFactory allows a compromised renderer to use duplicate request IDs to cause map collisions in the browser. This can trick extensions into injecting sensitive cross-origin secrets, such as authentication tokens, into attacker-controlled network requests.
Affected files:
extensions/browser/api/web_request/web_request_proxying_url_loader_factory.ccextensions/browser/api/web_request/web_request_api.cc
Estimated timestamp from git blame: 2018-06-13
Summary
A logic vulnerability in WebRequestProxyingURLLoaderFactory allows a compromised renderer process to perform a confused-deputy attack by providing duplicate request_id values for network requests. Because the browser process lacks uniqueness validation for these IDs in release builds, it can be tricked into routing network events and extension callbacks intended for a victim origin to a request destined for an attacker-controlled origin.
Root Cause Analysis
In extensions/browser/api/web_request/web_request_proxying_url_loader_factory.cc, the CreateLoaderAndStart method accepts a request_id parameter directly from the renderer via Mojo. This ID is used as a key in the network_request_id_to_web_request_id_ map. The code uses emplace(), which fails silently if the key already exists:
// extensions/browser/api/web_request/web_request_proxying_url_loader_factory.cc:1578
network_request_id_to_web_request_id_.emplace(request_id, web_request_id);
Similarly, in extensions/browser/api/web_request/web_request_api.cc, WebRequestAPI::ProxySet::AssociateProxyWithRequestId uses the ID as a map key, guarded only by a DCHECK which is absent in release builds:
// extensions/browser/api/web_request/web_request_api.cc:289
auto result = request_id_to_proxy_map_.emplace(id, proxy);
DCHECK(result.second) << "Unexpected request ID collision.";
When a collision occurs, the browser continues to use the stale mapping associated with the first request. When the network service subsequently triggers callbacks (like OnLoaderCreated or OnAuthRequired) using that request_id, the factory retrieves the metadata for the first request (e.g., a victim origin) but applies the action to the second request (e.g., the attacker's origin).
Potential Attack Scenario
- Setup: An attacker compromises a renderer process.
- Collision: The renderer initiates two requests using the same
request_id = X. Request A is forhttps://victim.corp/and Request B is forhttps://attacker.com/. - Hijacking: The browser maps
Xto Request A's internal state. When the network service creates the loader for Request B, the browser incorrectly routes theTrustedHeaderClientreceiver to Request A'sInProgressRequestobject. - Confused Deputy: Request B's load triggers an
OnBeforeSendHeadersevent. Request A handles this event, sees its own metadata (victim.corp), and notifies extensions. An extension injects a secret (e.g., a Bearer token) into the headers. - Exfiltration: Request A returns the modified headers (now containing the victim's token) to the network stack to be used for Request B. The secret is sent to the attacker's server.
Impact
This issue potentially allows a compromised renderer to bypass Site Isolation guarantees by exfiltrating sensitive credentials, cookies, or authentication headers managed by extensions. It affects any extension that relies on the webRequest API to modify headers or provide credentials based on URL filters.
Suggested Fix
The browser process should validate the uniqueness of the renderer-provided request_id. If emplace or insert fails because the ID is already present in the map, the browser should treat this as a compromised renderer and terminate the process using mojo::ReportBadMessage or a similar mechanism.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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
The browser process did not validate that renderer-supplied request IDs were unique before using them as map keys, and the only guard was a debug-only assertion absent in release builds.
Impact
This could allow a compromised renderer to bypass Site Isolation and exfiltrate credentials or authentication headers managed by extensions, affecting any extension that uses the webRequest API to modify headers or provide credentials based on URL filters.
What the attacker needed
Compromised renderer process; extension using webRequest API
The fix
The browser should validate that renderer-provided request IDs are unique and terminate the renderer if a duplicate is detected.
How it was found
- Compromise a renderer process.
- Initiate two requests using the same request_id, one for a victim origin and one for an attacker origin.
- The browser maps the ID to the first request's internal state.
- When the network service creates the loader for the second request, the browser routes the TrustedHeaderClient receiver to the first request's object.
- The second request's load triggers an OnBeforeSendHeaders event, which the first request handles using its own metadata.
- An extension injects a secret into the headers, which are then used for the second request and sent to the attacker's server.
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.
A compromised renderer is a web page process that an attacker already controls. The browser uses request IDs to keep track of network requests and to tell extensions which request they are modifying. Because the browser did not check that these IDs were unique, an attacker could make two requests share an ID and confuse the browser into sending a secret meant for one site to another site.
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.