Confused deputy in Extensions (CVE-2026-113118)
A logic flaw in the Declarative Net Request API lets a malicious extension redirect a public URL to another extension's static resource, causing the browser to automatically rewrite it to the target's secret dynamic GUID. The attacker can then observe that GUID via webRequest and force-load resources that should remain hidden.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic flaw in the Declarative Net Request (DNR) API may allow a malicious extension to bypass the 'use_dynamic_url' security feature of other extensions. The browser automatically rewrites static extension URLs to their session-specific dynamic GUIDs without verifying if the redirect initiator is authorized to access the target's secret GUID.
Affected files:
extensions/browser/api/web_accessible_resources/web_accessible_resources_router.ccextensions/browser/api/web_request/extension_web_request_event_router.ccextensions/browser/extension_navigation_throttle.ccextensions/common/manifest_handlers/web_accessible_resources_info.ccextensions/browser/extension_navigation_registry.ccextensions/browser/api/declarative_net_request/indexed_rule.ccextensions/browser/api/declarative_net_request/ruleset_matcher_base.ccextensions/browser/extension_protocols.ccextensions/browser/url_request_util.cc
Estimated timestamp from git blame: 2024-08-23
Description
A potential security vulnerability exists in the Chromium extension system where the use_dynamic_url protection for web-accessible resources can be bypassed. This feature is intended to prevent unauthorized websites and extensions from fingerprinting or loading extension resources by requiring a secret, session-specific GUID in the URL.
The issue resides in TransformToDynamicURLIfNecessary() within extensions/browser/api/web_accessible_resources/web_accessible_resources_router.cc. This function is responsible for converting a static extension URL (e.g., chrome-extension://<STATIC_ID>/resource) into its dynamic equivalent (e.g., chrome-extension://<GUID>/resource) for Manifest V3 extensions using the use_dynamic_url property.
When a declarativeNetRequest (DNR) redirect rule matches, the browser calls this function to rewrite the destination URL. Crucially, the function resolves the target extension based solely on the host of the redirect URL and automatically substitutes that extension's session GUID without verifying if the extension initiating the DNR redirect owns the target resource or is otherwise authorized to know its GUID.
Potential Impact
- GUID Leakage: An attacker can register a DNR rule to redirect a public URL to a target extension's static resource URL. The browser rewrites this to the dynamic GUID URL. This rewritten URL is then visible to any extension with
webRequestpermissions (including the attacker) via theonBeforeRedirectevent, revealing the secret session GUID. - Resource Loading Bypass: By providing the correct GUID automatically, the DNR pipeline satisfies the Web Accessible Resource (WAR) check in
IsResourceWebAccessibleImpl(), which mandates the use of the dynamic GUID for protected resources. This allows the attacker to force-load resources that should remain hidden from entities that do not already know the GUID. - Cross-Extension Defense Bypass: The automatic rewrite occurs early in the request pipeline, causing the subsequent WAR check to succeed. This may allow the request to bypass more restrictive checks like
ExtensionNavigationRegistry::CanRedirect()which are intended to prevent unauthorized cross-extension navigations.
Potential Step-by-Step Reproduction
Note: These steps are based on source code analysis; a functional proof-of-concept has not yet been executed.
- Target Extension (B): Install an extension that defines a resource with
"use_dynamic_url": trueand amatchespattern forhttps://example.com/*. - Attacker Extension (A): Install an extension with
declarativeNetRequestpermissions and host permissions forhttps://example.com/*. - Extension A registers a DNR rule to redirect
https://example.com/triggertochrome-extension://<Extension-B-ID>/resource.html. - A navigation to
https://example.com/triggeris initiated (e.g., via an iframe onhttps://example.com). - The DNR rule triggers.
TransformToDynamicURLIfNecessaryrewrites the destination tochrome-extension://<Extension-B-GUID>/resource.html. - Extension A observes the secret GUID in the
onBeforeRedirectevent via its ownwebRequestlistener. ExtensionNavigationThrottleperforms a WAR check. Since the URL now contains the correct GUID, the check succeeds, and Extension B's resource is loaded.
Suggested Fix
Modify TransformToDynamicURLIfNecessary (and its caller GetNewUrl in extension_web_request_event_router.cc) to accept the ExtensionId of the extension initiating the redirect. The transformation should only be performed if the initiator's ID matches the target extension's ID, or if the initiator is a privileged context (e.g., browser-initiated). If the initiator is a different extension, the static URL should not be automatically rewritten to the dynamic one.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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
Likely the URL-rewriting function resolves the target extension from the redirect host and substitutes its session GUID without checking whether the initiating extension is authorised to know that GUID.
Impact
An attacker could learn another extension's secret session GUID and force-load resources that should remain hidden, potentially bypassing cross-extension navigation checks; the report notes no functional proof-of-concept has been executed.
What the attacker needed
Victim installs a target extension using use_dynamic_url; attacker installs an extension with DNR and webRequest; attacker has host permission for the redirect URL; a navigation to the redirect URL occurs
The fix
The URL-rewriting function should be changed to accept the initiating extension's ID and only rewrite the URL when the initiator is the target extension itself or a privileged browser context.
How it was found
- Install a target extension that marks a resource with use_dynamic_url and matches example.com.
- Install an attacker extension with declarativeNetRequest and host permissions for example.com.
- The attacker registers a DNR rule redirecting a public URL to the target extension's static resource URL.
- A navigation to the public URL is initiated, for example from an iframe.
- The DNR rule fires and the browser rewrites the destination to the target's dynamic GUID URL.
- The attacker observes the secret GUID in the onBeforeRedirect event and the resource loads because the WAR check now passes.
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.
Extensions can mark some files as web-accessible but hide them behind a secret, per-session URL so other sites cannot easily find or load them. This report says a malicious extension can use a redirect rule to make the browser reveal that secret URL and then load the protected file anyway.
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.