Incorrect authorization in Navigation (CVE-2026-79237)
NavigationRequest initialises its site_info_ with a default StoragePartitionConfig, so when resolving keep-alive security policies for a destroyed initiator frame in a non-default partition, it queries the wrong partition and loses the initiator's policies. This can bypass Private Network Access preflight checks and CSP form-action restrictions, potentially allowing CSRF against local network devices.
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 security team.
Overview: NavigationRequest incorrectly initializes its internal site_info_ with a default StoragePartitionConfig. When resolving keep-alive security policies for an initiator frame that has been destroyed, it queries the default storage partition instead of the initiator's actual non-default partition. This causes navigations initiated from non-default partitions (like WebViews or Isolated Web Apps) to silently lose their security policies, potentially bypassing Private Network Access and CSP restrictions.
Affected files:
content/browser/renderer_host/navigation_request.cccontent/browser/renderer_host/render_frame_host_impl.cccontent/browser/renderer_host/navigation_policy_container_builder.cc
Estimated timestamp from git blame: 2021-07-23
Description
A logic flaw exists in the initialization of NavigationRequest that causes it to lose track of an initiator's security policies if the initiator resides in a non-default StoragePartition and is destroyed while the navigation is starting.
In the NavigationRequest constructor (content/browser/renderer_host/navigation_request.cc), the site_info_ member is initialized using a single-argument constructor: site_info_(frame_tree_node_->navigator().controller().GetBrowserContext()). This specific SiteInfo constructor (content/browser/site_info.cc) hardcodes the partition configuration to the default partition via StoragePartitionConfig::CreateDefault(browser_context).
Later in the NavigationRequest constructor, NavigationPolicyContainerBuilder is instantiated to build the security policies for the navigation. It attempts to fetch the initiator's policies by calling GetStoragePartitionWithCurrentSiteInfo(). Because site_info_ contains the default config, this returns the default StoragePartition, rather than the actual partition where the navigation originated.
If the initiating frame has already been destroyed (e.g., a popup that closes itself during an unload handler), its policies are preserved in a keep-alive map within its actual StoragePartition. Because the builder queries the default partition's keep-alive map instead, the lookup fails. The navigation proceeds with nullptr for its initiator policies, which degrades security bounds.
Security Impact
The silent dropping of initiator policies leads to the following potential security bypasses:
- Private Network Access (PNA) Bypass: In
NavigationRequest::BuildClientSecurityStateForNavigationFetch(), ifpolicy_container_builder_->InitiatorPolicies()is null, it returns a null security state. The network service subsequently skips PNA preflight checks (Result::kAllowedMissingClientSecurityState), allowing CSRF attacks against local network devices from restricted contexts. - CSP
form-actionBypass: DuringNavigationRequest::CheckCSPDirectives, ifinitiator_policiesis null, theform-actionchecks are completely skipped, allowing an attacker to bypass the initiator's CSP. - Policy Inheritance Loss: Navigations to local-scheme URLs (e.g.,
about:blank,data:) will fail to inherit the initiator's sandbox flags and referrer policies.
Potential Attack Scenario
Note: These are suggested steps to trigger the vulnerability. Our tooling agent does not have the ability to execute code to verify a working proof-of-concept.
- An attacker hosts malicious content within a container that uses a non-default
StoragePartition(e.g., a Chrome App<webview>, GuestView, or a Controlled Frame). - The attacker's page opens a popup window, which resides in the same non-default partition.
- The popup registers a
pagehideorunloadhandler. - The popup closes itself (e.g.,
window.close()). - During the frame destruction sequence, the handler fires and initiates a cross-document navigation on its
openerframe, pointing to a restricted local network address (e.g.,opener.location.href = 'http://192.168.1.1/admin'). - The browser registers a keep-alive handle for the popup's policies in the non-default partition, and the popup's
RenderFrameHostis destroyed. - The
NavigationRequestfor the opener's navigation is created. It queries the default partition for the popup's keep-alive policies, fails to find them, and proceeds without initiator policies. - The network request to
192.168.1.1is dispatched without a PNA preflight, successfully exploiting the local device.
Suggested Fix
Update the initialization of site_info_ in the NavigationRequest constructor so that it does not blindly default to StoragePartitionConfig::CreateDefault().
Instead of initializing site_info_ directly with BrowserContext*, it should be constructed by carefully determining the correct StoragePartitionConfig for the ongoing navigation (e.g., utilizing GetSiteInfoForCommonParamsURL() or querying the current FrameTreeNode's site instance configuration) before looking up the keep-alive handles in NavigationPolicyContainerBuilder.
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
Impact
This could allow CSRF attacks against local network devices from restricted contexts and bypass CSP form-action checks, though the report notes these are potential impacts and the proof-of-concept was not executed.
What the attacker needed
Attacker controls content in a non-default partition; victim uses a browser with the flaw; popup closes during navigation
The fix
The site_info_ initialisation should be updated to determine the correct StoragePartitionConfig for the navigation instead of defaulting to the default partition.
How it was found
- Host malicious content in a non-default StoragePartition container (e.g., a webview).
- Open a popup window from that page.
- Register a pagehide or unload handler in the popup.
- Close the popup, triggering the handler to navigate the opener to a local network address.
- The NavigationRequest queries the default partition for keep-alive policies, fails, and proceeds without initiator policies.
- The request to the local address is sent without a PNA preflight check.
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 browser keeps security rules (like which websites can talk to your local network) attached to each page. When a page opens a popup and the popup closes itself, the browser tries to remember those rules for a moment. A bug makes it look in the wrong place for those rules, so the navigation continues without them. This could let a malicious page bypass protections and send requests to devices on your home network.
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.