Improper input validation in Preload (CVE-2026-79214)
The browser process failed to validate the referrer URL supplied by a renderer when starting a NoStatePrefetch (legacy prerender) request. A compromised renderer could therefore forge the Referer header on background, credentialed GET requests, potentially bypassing Referer-based CSRF protections.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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 logic flaw in the NoStatePrefetch (legacy prerender) implementation allows a compromised renderer to forge the Referer header in browser-initiated requests. The browser process fails to validate the renderer-supplied referrer URL against the trustworthy initiator origin. This can be used to bypass Referer-based CSRF protections on target sites via background, credentialed GET requests.
Affected files:
components/no_state_prefetch/browser/no_state_prefetch_processor_impl.cccomponents/no_state_prefetch/browser/no_state_prefetch_link_manager.cccomponents/no_state_prefetch/browser/no_state_prefetch_manager.cccomponents/no_state_prefetch/browser/no_state_prefetch_contents.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A potential security vulnerability in the NoStatePrefetch implementation allows a compromised renderer to spoof the Referer HTTP header in background prefetch requests. The browser process captures the frame's trustworthy origin but fails to ensure that the renderer-supplied referrer URL in the Start Mojo IPC is consistent with that origin. Because these requests are initiated by the browser in a hidden WebContents, they include the user's cookies, enabling credentialed CSRF-like attacks.
Technical Details
When a renderer initiates a prefetch (e.g., via <link rel=prerender>), it triggers the blink.mojom.NoStatePrefetchProcessor::Start IPC. The browser handling logic follows this path:
- Interface Binding:
NoStatePrefetchProcessorImpl::Createcaptures the frame's trustworthy origin usingframe_host->GetLastCommittedOrigin()and stores it asinitiator_origin_(components/no_state_prefetch/browser/no_state_prefetch_processor_impl.cc:43). - IPC Dispatch: The renderer provides
blink.mojom.PrerenderAttributes, which includes areferrerfield (URL and policy). - Validation Failure: In
NoStatePrefetchProcessorImpl::Start, the browser validates that the process is allowed to hostinitiator_origin_, but no validation is performed on the renderer-suppliedattributes->referrer->url(components/no_state_prefetch/browser/no_state_prefetch_processor_impl.cc:47). - Navigation Initiation: The unvalidated referrer is passed through
NoStatePrefetchLinkManagerandNoStatePrefetchManagertoNoStatePrefetchContents. - Background Fetch:
NoStatePrefetchContents::StartPrerenderingcreates a hiddenWebContentsand initiates a navigation usingNavigationController::LoadURLWithParams(components/no_state_prefetch/browser/no_state_prefetch_contents.cc:311). TheLoadURLParamsare populated with the spoofed referrer URL and the trustworthyinitiator_origin_. - Network Request: The navigation results in a browser-initiated
network::ResourceRequestwithcredentials_modeset tokInclude. The Network Process sends the request with the forgedRefererheader.
This behavior allows a compromised renderer to perform invisible, credentialed cross-origin GET requests that appear to originate from a trusted site, potentially bypassing Referer-based CSRF mitigations or forging analytics data.
Potential Reproduction Steps
Note: These steps are based on manual code analysis; a functional PoC has not yet been executed.
- Gain code execution in a renderer process (e.g., via V8 memory corruption).
- Use MojoJS to bind to the
blink.mojom.NoStatePrefetchProcessorinterface. - Call
Start()withPrerenderAttributesconfigured with:url: The target sensitive action URL (e.g.,https://bank.example/transfer-funds).referrer.url: A site trusted by the target (e.g.,https://bank.example/dashboard).referrer.policy:network.mojom.ReferrerPolicy.kAlways.
- Observe the outgoing network request. It is expected to contain the user's cookies for
bank.exampleand the spoofedRefererheader.
Recommended Fix
In NoStatePrefetchProcessorImpl::Start, validate that the attributes->referrer->url provided by the renderer is either empty or same-origin with the trustworthy initiator_origin_. If the referrer URL is cross-origin, it should be cleared or the message should be treated as a BadMessage.
Evaluated with Chrome root at commit: 29093e11cf509e3593f6229e4b1b075cca356049
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 browser process trusted the renderer-supplied referrer URL in the NoStatePrefetch Start IPC without checking it against the frame's trustworthy initiator origin.
Impact
A compromised renderer could perform invisible, credentialed cross-origin GET requests that appear to come from a trusted site, potentially bypassing Referer-based CSRF mitigations or forging analytics data.
What the attacker needed
Code execution in a renderer process; target site relies on Referer for CSRF protection
The fix
The Start handler should validate that the renderer-supplied referrer URL is empty or same-origin with the trustworthy initiator origin, clearing it or treating the message as a BadMessage otherwise.
How it was found
- Gain code execution in a renderer process.
- Use MojoJS to bind to the NoStatePrefetchProcessor interface.
- Call Start() with PrerenderAttributes containing a target URL and a forged referrer URL with an always-send policy.
- Observe the outgoing network request containing the user's cookies and the spoofed Referer header.
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 web page asks the browser to quietly load another page in the background (a prefetch), the page can also say what address it came from, called the Referer header. The browser checked that the page was allowed to start the prefetch but did not check that the claimed address matched the page's real origin. If an attacker can already run code inside a web page, they could make the browser send requests that look like they came from a trusted site, and those requests would include the user's cookies.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.