Incorrect authorization in API (CVE-2026-121248)
A permission check in Chromium's webRequest API skipped verifying the initiator of navigation requests against user-blocked hosts, so an extension with broad permissions could observe and modify cross-origin navigations and form submissions from sites the user had blocked. This leaked the target URL, POST body, and headers to the extension.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential vulnerability in Chromium's webRequest API may allow extensions to observe and modify cross-origin frame/window navigations and form submissions initiated from user-blocked sites, bypassing user-configured host restrictions. This occurs because the navigation fast-path within the permission checks verifies host access for the destination URL but skips checking the request initiator against user-blocked hosts. While the initiator field itself is suppressed from the dispatched event, other sensitive details like the target URL and form POST body data are leaked to the extension.
Affected files:
extensions/browser/api/web_request/web_request_permissions.ccextensions/browser/api/web_request/web_request_event_details.ccextensions/common/permissions/permissions_data.cc
Estimated timestamp from git blame: 2022-06-02
Description and Root Cause
A potential security permission bypass exists in the webRequest API implementation within Chromium. When an extension is configured with <all_urls> permission and uses the webRequest/webRequestBlocking APIs, it is potentially able to intercept and modify navigation requests (such as cross-origin frame/window navigations and form submissions) initiated from sites that the user has explicitly blocked using the Extensions Menu Access Control feature (i.e., user_restrictions.blocked_hosts).
The root cause lies in CanExtensionAccessURLInternal() inside extensions/browser/api/web_request/web_request_permissions.cc. Under the REQUIRE_HOST_PERMISSION_FOR_URL_AND_INITIATOR case, navigation requests (such as MAIN_FRAME or SUB_FRAME) return early based solely on the destination target URL's permission:
// Only require access to the initiator for sub-resource (non-navigation)
// requests. See crbug.com/41433450.
if (is_navigation_request) {
return request_access;
}
Because of this navigation-request fast-path, the initiator of a MAIN_FRAME or SUB_FRAME request is checked against enterprise policies (via IsPolicyBlockedHost), but is never checked against user-configured blocked hosts (IsUrlBlockedByUser()). This creates an asymmetry: enterprise policies block all requests (including navigations), but user-blocked hosts are only protected for subresource requests (which fall through and undergo the initiator check).
Potential Impact
An installed extension with <all_urls> and webRequest permissions could intercept, read, and modify (e.g., cancel or redirect) cross-origin frame/window navigations and form POST submissions initiated by a user-blocked origin (e.g., https://bank.test).
While WebRequestEventDetails::GetFilteredDict in extensions/browser/api/web_request/web_request_event_details.cc suppresses the initiator field itself, other sensitive details are still leaked, including:
- The full target destination URL (which may contain sensitive query parameters or session tokens).
- The POST request body (via
requestBody.formData), which may contain sensitive transaction details or session tokens. - Request headers, such as
Referer, which reveal the precise page path on the blocked origin.
This represents a bypass of the user's host-restriction settings, allowing extensions to spy on or hijack user interactions on blocked hosts.
Potential Trigger Steps
Note: These are potential steps as our tooling does not currently have the capability to execute code.
- An extension with
<all_urls>,webRequest, andwebRequestBlockingpermissions is active and registers blocking listeners. - The user configures an origin (e.g.,
https://bank.test) to block extensions (withkExtensionsMenuAccessControlenabled). - The blocked page initiates a cross-origin form POST navigation or opens a frame to a third-party target.
WebRequestEventRouter::ListenerMatchesRequestinvokesCanExtensionAccessURL()withREQUIRE_HOST_PERMISSION_FOR_URL_AND_INITIATORandis_navigation_request = true.- Since the destination target is not restricted, and the navigation-request fast-path skips checking the initiator's user restrictions, the request is allowed.
- The listener receives the event details (excluding the initiator field) and can inspect or block/redirect the navigation.
Suggested Fix
To address this potential issue, the initiator of a navigation request should also be checked against user-configured blocked hosts. We can modify CanExtensionAccessURLInternal in extensions/browser/api/web_request/web_request_permissions.cc to explicitly reject requests if the initiator is blocked by the user, similar to how enterprise policies are enforced:
// Prevent viewing / modifying requests initiated by a host protected by user restrictions.
if (initiator &&
extension->permissions_data()->IsUrlBlockedByUser(initiator->GetURL())) {
return PermissionsData::PageAccess::kDenied;
}
Alternatively, we can refine the navigation-request fast-path under REQUIRE_HOST_PERMISSION_FOR_URL_AND_INITIATOR to verify initiator access against user restrictions before returning early.
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 navigation-request fast-path in CanExtensionAccessURLInternal returned early after checking only the destination URL's permission, so the initiator was never checked against user-configured blocked hosts.
Impact
An installed extension with broad permissions could intercept, read, and modify cross-origin navigations and form POST submissions from user-blocked origins, leaking the target URL, POST body, and headers.
What the attacker needed
Extension with <all_urls> and webRequest permissions; user has blocked an origin from extensions; blocked page initiates cross-origin navigation
The fix
The initiator of a navigation request should also be checked against user-configured blocked hosts, rejecting the request if the initiator is blocked.
How it was found
- An extension with broad host permissions and blocking webRequest listeners is active.
- The user blocks an origin from extensions using the menu access control feature.
- The blocked page initiates a cross-origin form POST navigation or opens a frame to a third-party target.
- The permission check runs with the navigation flag set and the initiator requirement.
- The destination is allowed and the initiator check is skipped, so the request is permitted.
- The listener receives event details without the initiator field but with other sensitive data.
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 can ask for permission to watch and change web requests. Users can also block extensions from seeing traffic on certain sites. Here, when a blocked site started a navigation or form submission to another site, the browser checked the destination but forgot to check where the request came from, so the extension still saw sensitive details.
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.