Insufficient validation of untrusted input Extensions (CVE-2026-12017)
The extension API dispatcher trusted a frame's last committed URL without checking whether the frame was showing an error page. A compromised renderer could make a blocked subframe navigation to the webstore domain commit an error page in its own process, then invoke privileged extension APIs such as webstorePrivate and management.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 17 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 potential logic bypass in ExtensionFunctionDispatcher allows a compromised renderer to access privileged Chrome Web Store APIs. When a subframe navigation to a restricted domain fails, it commits as an error page in the attacker's renderer process while its last committed URL is updated to the blocked target. Since the dispatcher trusts this URL, the compromised process can invoke privileged APIs such as webstorePrivate and management.
Affected files:
extensions/browser/extension_function_dispatcher.cc
Estimated timestamp from git blame: 2021-09-15
Description
There is a potential logic bypass in ExtensionFunctionDispatcher where it determines the source_url() of an extension API request by querying RenderFrameHost::GetLastCommittedURL() without verifying if the frame hosts an error document (via IsErrorDocument()).
When a subframe navigation fails (for instance, when blocked by a Content Security Policy like frame-src 'none'), it commits as an error page. Because subframe error pages are not isolated into their own process in Chromium (governed by ChromeContentBrowserClient::ShouldIsolateErrorPage), they commit within the initiator's (the attacker's) renderer process. However, GetLastCommittedURL() is still updated to the failed cross-origin target URL (e.g., https://chromewebstore.google.com/).
Since ExtensionFunctionDispatcher trusts this URL, a compromised renderer can bind extensions::mojom::LocalFrameHost for the subframe and dispatch extension function requests. The browser-side permission checks (HasPermission()) evaluate availability against the spoofed source_url(), allowing the compromised renderer to execute privileged APIs restricted to the webstore domain (such as webstorePrivate and management).
Vulnerable Code Path
In extensions/browser/extension_function_dispatcher.cc:
const GURL* render_frame_host_url = nullptr;
if (render_frame_host) {
render_frame_host_url = &render_frame_host->GetLastCommittedURL();
DCHECK_EQ(render_process_id,
render_frame_host->GetProcess()->GetDeprecatedID());
}
...
if (is_worker_request) {
function->set_source_url(params_without_args.source_url);
} else {
DCHECK(render_frame_host_url);
function->set_source_url(*render_frame_host_url);
}
And in content/browser/renderer_host/render_frame_host_impl.cc:
void RenderFrameHostImpl::DidNavigate(
const mojom::DidCommitProvisionalLoadParams& params,
NavigationRequest* navigation_request,
bool was_within_same_document) {
...
// The URL is set regardless of whether it's for a net error or not.
SetLastCommittedUrl(params.url);
Potential Steps to Reproduce
Note: These are suggested/potential steps; our tooling does not have the ability to run live code.
- Assume a compromised renderer process (renderer RCE).
- Set up a subframe (
<iframe>) inside the compromised page and restrict it using a CSP header such asframe-src 'none'to guarantee a navigation failure. - Navigate the subframe to
https://chromewebstore.google.com/. - The subframe navigation is blocked and commits a local error page within the attacker's renderer process. The subframe
RenderFrameHost'sGetLastCommittedURL()is set tohttps://chromewebstore.google.com/. - From the compromised renderer process, request to bind the
extensions::mojom::LocalFrameHostinterface on the subframe's channel. - Issue a Mojo
RequestIPC targetingmanagement.setEnabledto silently disable any target extension ID. - The browser-side dispatcher validates the request, sets the
source_urltohttps://chromewebstore.google.com/, passes permission checks, and disables the target extension.
Suggested Fix
ExtensionFunctionDispatcher should reject requests originating from frames where IsErrorDocument() is true, or ensure that privilege validation is evaluated using GetLastCommittedOrigin() (which returns an opaque origin for error pages) rather than relying on GetLastCommittedURL().
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 dispatcher derived the request's source URL from the frame's last committed URL without checking that the frame hosts an error document, and error pages are not isolated into their own process.
Impact
A compromised renderer could call extension APIs restricted to the webstore domain, for example silently disabling an installed extension; the report notes the steps are potential and were not run.
What the attacker needed
Attacker already controls a renderer process
The fix
The dispatcher should reject requests from frames showing an error document, or check privilege against the last committed origin, which is opaque for error pages.
How it was found
- Assume a compromised renderer process.
- Create a subframe and restrict it with a CSP frame-src directive so navigation must fail.
- Navigate the subframe to the webstore domain.
- The navigation is blocked and commits an error page in the attacker's process, with the last committed URL set to the webstore domain.
- Bind the extension LocalFrameHost interface on the subframe's channel.
- Send a request to a privileged management API, which passes the permission check and disables the target extension.
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 splits web pages into separate processes, and a page that has been hacked is called a compromised renderer. Normally such a page is not allowed to call powerful browser features reserved for the Chrome Web Store. Here the browser asked the page which address it was on, and the page could make that answer look like the webstore address by triggering a failed navigation, so the permission check passed.
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.