Skip to content
Access control Advisory Advanced CVE-2026-19152

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.cc
  • content/browser/renderer_host/navigation_request.cc
  • content/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

  1. Compromised Target: The attacker controls a malicious website (Site A) and has compromised the renderer process hosting it (Process P_A).
  2. 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).
  3. History State: The browser creates a FrameNavigationEntry (FNE_B) for Site B. Since the form was submitted via POST, FNE_B->GetPostData() stores a ResourceRequestBody containing a DataElementFile referencing File F.

Potential Execution Trace

  1. Return to Site A: The compromised Process P_A navigates the iframe back to a same-site URL (Site A). The iframe's active RenderFrameHost is now hosted in Process P_A, but the joint history session retains FNE_B.

  2. 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').

  3. Trigger History Back: Process P_A initiates a history back navigation targeting the Site B entry (LocalMainFrameHost::GoToEntryAtOffset(-1)).

  4. Request Construction: NavigationControllerImpl::CreateNavigationRequestFromEntry (content/browser/renderer_host/navigation_controller_impl.cc:4866-5006) extracts the post_data via frame_entry->GetPostData() and assigns it to the new NavigationRequest's common_params->post_data intact.

  5. Navigation Blocked: NavigationRequest::BeginNavigationImpl evaluates the CSP, which blocks the navigation, yielding ERR_BLOCKED_BY_CSP.

  6. Error Process Assignment: NavigationRequest::SelectFrameHostForOnRequestFailedInternal calls ComputeErrorPageProcess() (navigation_request.cc:5814-5856). Because it is a subframe (IsErrorPageIsolationEnabled() evaluates to false), it is a blocked request (IsRequestBlockedError() == true), and it is renderer-initiated (!browser_initiated()), it explicitly returns ErrorPageProcess::kCurrentProcess (Process P_A).

  7. State Reset Failure: GetSiteInstanceForNavigationRequest assigns the error navigation to Site A's SiteInstance. Because the destination SiteInstance of 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 clears commit_params_->page_state, but fails to clear or reset common_params_->post_data.

  8. Unauthorized File Grant: NavigationRequest::CommitErrorPage calls GetRenderFrameHost()->FailedNavigation() on Process P_A's RenderFrameHost, which in turn invokes UpdatePermissionsForNavigation (render_frame_host_impl.cc:14048).

  9. 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_data survived the reset, this iterates over DataElementFile and invokes ChildProcessSecurityPolicyImpl::GrantReadFile, permanently granting Process P_A (Site A) read access to File F.

  10. Data Leakage & Exfiltration: The browser sends the CommitFailedNavigation Mojo IPC to Process P_A. As defined in content/common/navigation_client.mojom, this IPC includes CommonNavigationParams. In services/network/public/cpp/url_request_mojom_traits.cc, the renderer deserializes the URLRequestBody and DataElementFile, placing the exact local file path string directly into the attacker's memory space. Process P_A can now initiate a new fetch() using the leaked path, successfully bypassing all browser CanReadFile checks.

Suggested Fix

In content/browser/renderer_host/navigation_request.cc, inside NavigationRequest::ResetStateForSiteInstanceChange(), explicitly clear common_params_->post_data alongside commit_params_->page_state.

C++
  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 ComputeErrorPageProcess and UpdatePermissionsForNavigation. When a renderer-initiated history navigation for a subframe is blocked (e.g. via CSP injected by a compromised renderer), ComputeErrorPageProcess() evaluates to kCurrentProcess (process P_A, locked to site A). FailedNavigation then invokes UpdatePermissionsForNavigation(request) on P_A's RFH.

UpdatePermissionsForNavigation calls GrantFileAccessFromResourceRequestBody with request->common_params().post_data. Because ResetStateForSiteInstanceChange() fails to clear post_data, the file paths in the post_data—which the user uploaded to site B in a prior interaction—are passed to GrantReadFile, granting P_A access to those files. Once P_A legitimately holds the GrantReadFile permission for file F, it can freely bypass downstream CanReadFile checks 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-411 defines CommitFailedNavigation taking blink.mojom.CommonNavigationParams common_params.
    • third_party/blink/public/mojom/navigation/navigation_params.mojom:273 confirms CommonNavigationParams contains network.mojom.URLRequestBody? post_data.
    • services/network/public/cpp/url_request_mojom_traits.cc:229-242 confirms that DataElementFile deserializes the file path directly into the renderer process's memory space intact (base::FilePath path), without any stripping.
  • Subframe Error Isolation Evaluation:
    • Verified FrameTreeNode::IsErrorPageIsolationEnabled (lines 1140-1143) routes to SiteIsolationPolicy::IsErrorPageIsolationEnabled(IsMainFrame()).
    • Traced to ChromeContentBrowserClient::ShouldIsolateErrorPage(bool in_main_frame) (lines 2551-2555) which strictly returns in_main_frame. For subframes, this is deterministically false.
  • Missing Cleanup Validation:
    • Codebase audit of NavigationRequest::ResetStateForSiteInstanceChange (navigation_request.cc:3636-3661) confirms it exclusively resets bindings_, commit_params_->page_state, and origin_related_state_. common_params_->post_data remains completely unaddressed.
  • Data Preservation in Navigation Generation:
    • Codebase audit of NavigationControllerImpl::CreateNavigationRequestFromEntry (navigation_controller_impl.cc:4866-5006) confirms request_body is extracted from frame_entry->GetPostData() and placed un-sanitized into entry->ConstructCommonNavigationParams().

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. 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.
  2. The compromised renderer navigates the iframe back to its own site and injects a CSP that blocks subframe navigations to the victim site.
  3. The renderer triggers a history back navigation to the victim site's entry.
  4. The CSP blocks the navigation, and the error page is assigned to the current process.
  5. The state reset runs but leaves the POST data intact, so the browser grants file-read permission to the attacker's process.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.