Inappropriate implementation in Navigation (CVE-2026-19152)
A missing cleanup in Chromium's navigation state reset leaves POST body data intact when a blocked history navigation is reassigned to a different process. A compromised renderer could then receive a file-read permission and the local file path for a file the user previously uploaded to another site, allowing it to read that file.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 34 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 missing cleanup in NavigationRequest::ResetStateForSiteInstanceChange() allows a compromised renderer to obtain GrantReadFile permissions for local files previously uploaded to cross-origin sites. By triggering a blocked history navigation in a subframe, the attacker forces the browser to grant file access to the wrong process and leak the target file path via IPC.
Affected files:
content/browser/renderer_host/render_frame_host_impl.cccontent/browser/renderer_host/navigation_request.cccontent/browser/renderer_host/render_frame_host_manager.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
1. Summary of the Issue (Meant for Human Triage)
A severe potential cross-origin file read vulnerability exists in Chromium's navigation stack due to a failure to clear POST request body state during navigation-state resets on failed navigations. When a renderer-initiated history subframe navigation is blocked (for example, by a Content Security Policy or a NavigationThrottle), NavigationRequest::ComputeErrorPageProcess() determines that the error page should be hosted in the current frame's process (kCurrentProcess). Consequently, FailedNavigation is invoked on the current process's RenderFrameHost, which calls UpdatePermissionsForNavigation to grant permissions to that process.
If the current process (Process A, locked to Site A) differs from the original destination process (Process B, locked to Site B), ResetStateForSiteInstanceChange() is triggered. While this correctly mitigates serialized PageState-based file access by clearing commit_params_->page_state, it critically fails to clear common_params_->post_data. As a result, the local file paths embedded in the post_data—which the user legitimately uploaded to Site B via a file picker in a prior session—are passed to GrantFileAccessFromResourceRequestBody. This issues a GrantReadFile permission to the attacker's Process A.
Furthermore, the exact local file path is sent to the attacker's process via the CommitFailedNavigation Mojo IPC. This allows a compromised renderer hosting Site A to bypass downstream CanReadFile checks and silently exfiltrate arbitrary files previously selected by the user on Site B.
2. Proof-of-Concept & Detailed Execution Flow
Note: Our tooling agent does not have the ability to run code. The following are potential, suggested steps an attacker would follow to trigger the vulnerability based on static codebase analysis.
Attacker Setup & Preconditions
- Compromised Target: The attacker controls a malicious website (Site A) and has compromised the renderer process hosting it (Process P_A).
- Target File Upload: The attacker embeds a cross-origin iframe to the victim site (Site B). The user interacts with Site B (e.g., via
<input type="file">) and uploads a local file (File F). - History State: The browser creates a
FrameNavigationEntry(FNE_B) for Site B. Since the form was submitted via POST,FNE_B->GetPostData()stores aResourceRequestBodycontaining aDataElementFilereferencing File F.
Potential Execution Trace
-
Return to Site A: The compromised Process P_A navigates the iframe back to a same-site URL (Site A). The iframe's active
RenderFrameHostis now hosted in Process P_A, but the joint history session retains FNE_B. -
Block Policy Injection: Process P_A injects a Content Security Policy into its main frame that blocks subframe navigations to Site B (e.g.,
frame-src 'self'). -
Trigger History Back: Process P_A initiates a history back navigation targeting the Site B entry (
LocalMainFrameHost::GoToEntryAtOffset(-1)). -
Request Construction:
NavigationControllerImpl::CreateNavigationRequestFromEntry(content/browser/renderer_host/navigation_controller_impl.cc:4866-5006) extracts thepost_dataviaframe_entry->GetPostData()and assigns it to the newNavigationRequest'scommon_params->post_dataintact. -
Navigation Blocked:
NavigationRequest::BeginNavigationImplevaluates the CSP, which blocks the navigation, yieldingERR_BLOCKED_BY_CSP. -
Error Process Assignment:
NavigationRequest::SelectFrameHostForOnRequestFailedInternalcallsComputeErrorPageProcess()(navigation_request.cc:5814-5856). Because it is a subframe (IsErrorPageIsolationEnabled()evaluates tofalse), it is a blocked request (IsRequestBlockedError() == true), and it is renderer-initiated (!browser_initiated()), it explicitly returnsErrorPageProcess::kCurrentProcess(Process P_A). -
State Reset Failure:
GetSiteInstanceForNavigationRequestassigns the error navigation to Site A'sSiteInstance. Because the destinationSiteInstanceof the history entry (Site B) differs from the assigned instance (Site A),NavigationRequest::ResetStateForSiteInstanceChange()is called (navigation_request.cc:3636-3661). This function resets bindings and clearscommit_params_->page_state, but fails to clear or resetcommon_params_->post_data. -
Unauthorized File Grant:
NavigationRequest::CommitErrorPagecallsGetRenderFrameHost()->FailedNavigation()on Process P_A'sRenderFrameHost, which in turn invokesUpdatePermissionsForNavigation(render_frame_host_impl.cc:14048). -
Sink Execution:
C++ // content/browser/renderer_host/render_frame_host_impl.cc:14092-14094 if (request->common_params().post_data) { GrantFileAccessFromResourceRequestBody(*request->common_params().post_data); }Because
post_datasurvived the reset, this iterates overDataElementFileand invokesChildProcessSecurityPolicyImpl::GrantReadFile, permanently granting Process P_A (Site A) read access to File F. -
Data Leakage & Exfiltration: The browser sends the
CommitFailedNavigationMojo IPC to Process P_A. As defined incontent/common/navigation_client.mojom, this IPC includesCommonNavigationParams. Inservices/network/public/cpp/url_request_mojom_traits.cc, the renderer deserializes theURLRequestBodyandDataElementFile, placing the exact local file path string directly into the attacker's memory space. Process P_A can now initiate a newfetch()using the leaked path, successfully bypassing all browserCanReadFilechecks.
Suggested Fix
In content/browser/renderer_host/navigation_request.cc, inside NavigationRequest::ResetStateForSiteInstanceChange(), explicitly clear common_params_->post_data alongside commit_params_->page_state.
if (page_state.IsValid())
commit_params_->page_state =
blink::PageState::CreateFromURL(GetURL()).ToEncodedData();
+ // Also clear post_data to prevent leaking cross-origin file references or
+ // issuing unauthorized file grants to the wrong process.
+ common_params_->post_data = nullptr;
3. Technical Verification Details (Automated Audit Logs - Reviewers may skip this section)
Prior Critic Verdict
Severity: High (S1) Brief Notes / Reasoning: The report describes a valid cross-origin file leak via
ComputeErrorPageProcessandUpdatePermissionsForNavigation. When a renderer-initiated history navigation for a subframe is blocked (e.g. via CSP injected by a compromised renderer),ComputeErrorPageProcess()evaluates tokCurrentProcess(process P_A, locked to site A).FailedNavigationthen invokesUpdatePermissionsForNavigation(request)on P_A's RFH.
UpdatePermissionsForNavigationcallsGrantFileAccessFromResourceRequestBodywithrequest->common_params().post_data. BecauseResetStateForSiteInstanceChange()fails to clearpost_data, the file paths in thepost_data—which the user uploaded to site B in a prior interaction—are passed toGrantReadFile, granting P_A access to those files. Once P_A legitimately holds theGrantReadFilepermission for file F, it can freely bypass downstreamCanReadFilechecks and exfiltrate the file to site A.The rewriter downrated this to Low (S3), claiming it duplicates a 'low' finding and non-arbitrary file reads don't meet the S1 bar. However, the severity guidelines explicitly state: 'A ChildProcessSecurityPolicy grant for site B or file:// is issued to a process locked to site A' is High (S1) severity. Furthermore, this constitutes an ability to 'read cross-origin data' (a file intended for another origin), which is also S1. The prerequisite user interaction (uploading a file via a file picker) is a standard web interaction, not 'unusual or complex', and does not warrant a severity downgrade.
Additional Agent Verifications & Logic Proofs
- IPC Serialization / Deserialization Confirmations:
- Verified via codebase tracing that
content/common/navigation_client.mojom:397-411definesCommitFailedNavigationtakingblink.mojom.CommonNavigationParams common_params. third_party/blink/public/mojom/navigation/navigation_params.mojom:273confirmsCommonNavigationParamscontainsnetwork.mojom.URLRequestBody? post_data.services/network/public/cpp/url_request_mojom_traits.cc:229-242confirms thatDataElementFiledeserializes the file path directly into the renderer process's memory space intact (base::FilePath path), without any stripping.
- Verified via codebase tracing that
- Subframe Error Isolation Evaluation:
- Verified
FrameTreeNode::IsErrorPageIsolationEnabled(lines 1140-1143) routes toSiteIsolationPolicy::IsErrorPageIsolationEnabled(IsMainFrame()). - Traced to
ChromeContentBrowserClient::ShouldIsolateErrorPage(bool in_main_frame)(lines 2551-2555) which strictly returnsin_main_frame. For subframes, this is deterministicallyfalse.
- Verified
- Missing Cleanup Validation:
- Codebase audit of
NavigationRequest::ResetStateForSiteInstanceChange(navigation_request.cc:3636-3661) confirms it exclusively resetsbindings_,commit_params_->page_state, andorigin_related_state_.common_params_->post_dataremains completely unaddressed.
- Codebase audit of
- Data Preservation in Navigation Generation:
- Codebase audit of
NavigationControllerImpl::CreateNavigationRequestFromEntry(navigation_controller_impl.cc:4866-5006) confirmsrequest_bodyis extracted fromframe_entry->GetPostData()and placed un-sanitized intoentry->ConstructCommonNavigationParams().
- Codebase audit of
Evaluated with Chrome root at commit: b25acdb3da6209f69a155cbd1dbbaca3c21f535b
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 reset function clears the serialized page state but forgets to clear the POST request body, so stale file references survive a process change.
Impact
A compromised renderer could read local files the user previously uploaded to another site, though the report notes the tooling could not run code and the steps are suggested from static analysis.
What the attacker needed
Compromised renderer for attacker site; victim uploaded a file to another site; victim visits attacker site
The fix
The report suggests clearing the POST data in the navigation state reset function alongside the page state.
How it was found
- The user uploads a local file to a cross-origin site inside an iframe, creating a history entry that stores the file reference in its POST data.
- The compromised renderer navigates the iframe back to its own site and injects a CSP that blocks subframe navigations to the victim site.
- The renderer triggers a history back navigation to the victim site's entry.
- The CSP blocks the navigation, and the error page is assigned to the current process.
- The state reset runs but leaves the POST data intact, so the browser grants file-read permission to the attacker's process.
- The failed-navigation IPC sends the file path to the attacker's process, which can then fetch the file.
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.
When you upload a file to a website, the browser remembers the file's location so that site can read it later. This report says a bug could let a different, malicious website trick the browser into giving it permission to read a file you uploaded elsewhere. The attacker would first need to take over the browser process running their own page.
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.