Insufficient validation of untrusted input in Network (CVE-2026-13926)
A logic bug in NetErrorTabHelper allows a compromised renderer to schedule a background download of an error page without an initiator_origin, so the request is treated as browser-initiated and includes SameSite=Strict cookies. An attacker with a compromised renderer could trigger a credentialed GET request to an attacker-specified URL.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic bug in NetErrorTabHelper allows a compromised renderer to schedule a background download of an error page. The background navigation lacks an initiator_origin, meaning it is treated as browser-initiated and bypasses SameSite=Strict cookie protections.
Affected files:
chrome/browser/net/net_error_tab_helper.cccomponents/offline_pages/content/background_loader/background_loader_contents.cc
Estimated timestamp from git blame: 2020-06-23
Summary
A logic bug in NetErrorTabHelper::DownloadPageLater allows a compromised renderer to bypass SameSite=Strict cookie restrictions. The browser-process Mojo handler fails to validate that the calling frame is the primary main frame before scheduling a background page download. This results in the scheduling of a background fetch that is executed as a browser-initiated navigation, bypassing SameSite=Strict restrictions.
Vulnerability Details
NetErrorTabHelper::DownloadPageLater() (in chrome/browser/net/net_error_tab_helper.cc) validates that the main frame is showing an error page by checking web_contents()->GetController().GetLastCommittedEntry()->GetPageType(). However, it does not check if the Mojo IPC was actually sent by the primary main frame.
When a cross-site navigation fails and an error page is committed, the previous renderer process is moved to a pending-deletion state but remains alive briefly to run unload handlers. During this window, an attacker with a compromised renderer can still send IPC messages to the NetErrorPageSupport interface, which is bound to every RenderFrameHost.
Because the browser's NavigationController state is updated when the error page commits, the attacker's call to DownloadPageLater from the pending-deletion frame will pass the PAGE_TYPE_ERROR check. The browser then extracts the failed navigation's URL (the VirtualURL of the error page) and schedules a background download via OfflinePageUtils::ScheduleDownload.
Impact: SameSite=Strict Bypass
The background download is eventually performed by BackgroundLoaderContents::LoadPage (in components/offline_pages/content/background_loader/background_loader_contents.cc), which calls LoadURL without specifying an initiator_origin.
Per Chrome's navigation logic, a navigation with a null initiator_origin is treated as a trusted, browser-initiated (e.g., omnibox) navigation. This causes the browser to include SameSite=Strict cookies in the request, which would normally be blocked for cross-site navigations initiated by a renderer.
This primitive allows an attacker to trigger a delayed, credentialed GET request (CSRF) to an attacker-specified URL. The request may be executed immediately or retried later by the Offline Pages component.
Potential Exploitation Steps
- An attacker compromises a renderer process (e.g., via a V8 vulnerability).
- The compromised renderer initiates a navigation to a target cross-site URL (e.g.,
https://target.com/sensitive_action) that is known to fail or is artificially forced to fail (e.g., DNS error). - The browser commits an error page, and the attacker's frame enters a pending-deletion state.
- The compromised renderer sends a
DownloadPageLaterIPC via thechrome::mojom::NetErrorPageSupportinterface. NetErrorTabHelper::DownloadPageLaterprocesses the IPC, passes the error page checks, and schedules a background download for the target URL.- The background loader executes the GET request with
SameSite=Strictcookies attached.
Recommendations
Add a check in NetErrorTabHelper::DownloadPageLater to ensure the calling frame is the primary main frame, matching the pattern used in RunNetworkDiagnosticsHelper:
if (!net_error_page_support_.GetCurrentTargetFrame()->IsInPrimaryMainFrame()) {
return;
}
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
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
Root cause
Likely the Mojo IPC handler for DownloadPageLater does not verify that the calling frame is the primary main frame, allowing a pending-deletion frame to schedule a background download that is later treated as browser-initiated.
Impact
An attacker with a compromised renderer could trigger a delayed, credentialed GET request (CSRF) to an attacker-specified URL, potentially performing actions on behalf of the user.
What the attacker needed
Compromised renderer process
The fix
The fix should add a check in NetErrorTabHelper::DownloadPageLater to ensure the calling frame is the primary main frame.
How it was found
- Compromise a renderer process.
- Initiate a navigation to a target cross-site URL that fails.
- Wait for the error page to commit and the attacker's frame to enter pending-deletion state.
- Send a DownloadPageLater IPC via the NetErrorPageSupport interface.
- The browser processes the IPC, passes error page checks, and schedules a background download.
- The background loader executes the GET request with SameSite=Strict cookies attached.
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 a website fails to load, Chrome shows an error page. A security check in Chrome is supposed to ensure that only the main page can ask Chrome to download that error page later. The bug means a malicious or compromised part of the browser can still make that request, and Chrome then sends cookies that are normally only sent for direct browser navigations, potentially performing actions on another site without the user's intent.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.