Missing authorization in Extensions (CVE-2026-113198)
A compromised renderer could forge the request destination field to make a subresource request appear as a main-frame navigation, bypassing the web_accessible_resources policy. This allowed reading arbitrary private files from any installed extension, such as background scripts and manifests.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 7 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 security team.
Overview: A compromised renderer can bypass the web_accessible_resources security policy and read arbitrary files from any installed extension. By forging the RequestDestination to kDocument in a Mojo request to its ExtensionURLLoaderFactory, the renderer tricks the browser process into treating the subresource request as a trusted main-frame navigation. This allows the renderer to access sensitive extension files like background scripts and manifests.
Affected files:
extensions/browser/url_request_util.ccextensions/browser/extension_protocols.cc
Estimated timestamp from git blame: 2020-12-07
Summary
A vulnerability in ExtensionURLLoaderFactory allows a compromised web renderer to bypass the web_accessible_resources security policy and read private files from any installed Chrome extension.
By forging the destination field in a network::ResourceRequest sent over Mojo to the browser process, the renderer can trick the extension protocol handler into treating a subresource request as a trusted main-frame navigation.
Technical Details
When a web renderer navigates or fetches resources, it is provided a URLLoaderFactoryBundle by the browser. For chrome-extension:// requests, the renderer is given a Mojo remote to an ExtensionURLLoaderFactory hosted in the browser process. This factory is bound with the renderer's actual render_process_id.
Because ExtensionURLLoaderFactory is handled directly in the browser process, requests sent to it do not pass through the Network Service's CorsURLLoaderFactory. Consequently, fields like request.destination are not validated or sanitized by the Network Service before reaching the extension handler.
The vulnerability occurs in extensions::url_request_util::AllowCrossRendererResourceLoad (extensions/browser/url_request_util.cc). This function determines if a renderer is allowed to load a specific extension resource.
// extensions/browser/url_request_util.cc:104
if (destination == network::mojom::RequestDestination::kDocument) {
*allowed = true;
return true;
}
This logic is intended to permit main-frame navigations to extension URLs (which are verified separately by ExtensionNavigationThrottle). However, it unconditionally trusts the destination field without verifying the origin of the request.
A compromised renderer can send a request through its ExtensionURLLoaderFactory and set request.destination = network::mojom::RequestDestination::kDocument. This directly satisfies the condition above, causing the function to return true. As a result, the subsequent check for web_accessible_resources (at line 133) is completely bypassed. The browser process then streams the requested private extension file back to the compromised renderer.
Potential Attack Steps
Note: These steps are based on static analysis; a working Proof of Concept has not yet been executed.
- An attacker compromises a web renderer process (e.g., via a V8 or Blink vulnerability).
- From the compromised renderer, the attacker obtains the Mojo remote for the
chrome-extension://scheme'sURLLoaderFactory. - The attacker crafts a
network::ResourceRequestfor a target extension's private file (e.g.,chrome-extension://<target_id>/background.js). - The attacker sets the
destinationfield of this request tonetwork::mojom::RequestDestination::kDocument. - The attacker calls
CreateLoaderAndStarton the Mojo interface. - The browser process grants access due to the
kDocumentbypass, reads the file from disk, and sends the contents back to the renderer.
Suggested Fix
In extensions/browser/url_request_util.cc, the kDocument bypass should explicitly verify that the request originated from the browser process, rather than a renderer process.
Update the check to enforce that child_id is invalid (which indicates a browser-initiated request):
if (destination == network::mojom::RequestDestination::kDocument &&
child_id == content::ChildProcessHost::kInvalidUniqueID) {
*allowed = true;
return true;
}
Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33
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. 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 extension URL loader trusted the renderer-supplied request destination without verifying that the request actually came from the browser process.
Impact
A compromised renderer could read private files from any installed extension, but the attack requires first compromising the renderer and has not been demonstrated with a working proof of concept.
What the attacker needed
Compromised renderer process; target extension installed
The fix
The kDocument bypass should verify that the request originated from the browser process by checking that the child_id is invalid.
How it was found
- Compromise a web renderer process.
- Obtain the Mojo remote for the extension scheme's URLLoaderFactory.
- Craft a resource request for a target extension's private file.
- Set the request destination to kDocument.
- Call CreateLoaderAndStart on the Mojo interface.
- The browser reads the private file and returns its contents to the renderer.
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.
Browser extensions keep some files private, only meant for the browser itself. A security check was supposed to stop web pages from reading those private files, but a bug let a malicious page pretend its request was a trusted top-level navigation. That trick let it read files it should never see, like an extension's background script.
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.