Information leak in Downloads (CVE-2026-87451)
The browser trusted a download-policy flag supplied by the renderer, so a compromised renderer could set it to make the browser print the full post-redirect download URL to the pre-navigation frame's console. That could expose sensitive query parameters or capability tokens from cross-origin download URLs.
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 potential security vulnerability exists where a compromised renderer can forge the kOpenerCrossOrigin download policy bit due to a lack of browser-side validation. When a navigation is redirected to a cross-origin download, the browser process potentially leaks the full, unsanitized post-redirect URL to the pre-navigation frame via a console message. This could allow an attacker to obtain sensitive query parameters or capability tokens from cross-origin download URLs.
Affected files:
content/browser/renderer_host/navigation_request.cc
Estimated timestamp from git blame: 2019-02-21
Root Cause Analysis
In content/browser/renderer_host/navigation_request.cc, the function NavigationRequest::RecordDownloadUseCountersPrePolicyCheck() is responsible for logging deprecation warnings when a download occurs under certain conditions.
Specifically, if the download policy is flagged as kOpenerCrossOrigin, the browser writes a warning to the console of the pre-navigation frame (rfh):
void NavigationRequest::RecordDownloadUseCountersPrePolicyCheck() {
RenderFrameHost* rfh = frame_tree_node_->current_frame_host();
...
if (download_policy().IsType(
blink::NavigationDownloadType::kOpenerCrossOrigin)) {
rfh->AddMessageToConsole(
blink::mojom::ConsoleMessageLevel::kError,
base::StringPrintf(
"Navigating a cross-origin opener to a download (%s) is "
"deprecated, see ...",
common_params_->url.spec().c_str())); // <-- Potential URL leak
The NavigationDownloadPolicy struct is passed from the renderer via the BeginNavigation Mojo IPC inside CommonNavigationParams. Currently, the browser process fails to validate or recompute the kOpenerCrossOrigin policy bit, trusting the value provided by the renderer. This is explicitly noted in a TODO comment in NavigationRequest::ComputeDownloadPolicy():
void NavigationRequest::ComputeDownloadPolicy() {
...
// TODO(arthursonzogni): Check if the following fields from the
// NavigationDownloadPolicy could be computed here from the browser process
// instead:
//
// [NoGesture]
// [OpenerCrossOrigin]
// [AdFrameNoGesture]
// [AdFrame]
// [Interstitial]
}
If a compromised renderer maliciously triggers a navigation with kOpenerCrossOrigin set to true, the browser will evaluate the condition as true upon receiving a download response. It will then serialize and send the full, unsanitized post-redirect URL (stored in common_params_->url) back to the pre-navigation frame via LocalFrame::AddMessageToConsole Mojo IPC.
Potential Attack Steps
Please note: The analyzing tools utilized to evaluate this codebase do not have the capability to execute code. The following sequence describes potential steps an attacker might follow to trigger this vulnerability:
- Renderer Compromise: The attacker exploits a vulnerability in the sandboxed renderer process (e.g., a V8 memory corruption bug) to gain arbitrary code execution inside the sandbox.
- Parameter Forgery: The compromised renderer initiates a navigation to a target cross-origin endpoint (e.g.,
https://victim.com/export) while forging theobserved_types.opener_cross_origin = truebit insideCommonNavigationParams::download_policyover theFrameHost::BeginNavigationMojo interface. - Redirection Handling: The request to
https://victim.com/exportis sent with the victim's session cookies and redirects to a temporary, capability-locked resource containing query parameters (e.g.,https://cdn.victim.com/file.zip?token=SECRET_TOKEN). - Download Response: The target endpoint responds with a
Content-Disposition: attachmentheader, which classifies the response as a download. - Console Leak: The browser calls
RecordDownloadUseCountersPrePolicyCheck(). Due to the forged policy bit, it prints the full URL containingtoken=SECRET_TOKENto the pre-navigation console via Mojo IPC, allowing the compromised renderer to intercept and read the token.
Impact
This is a potential Site-Isolation bypass. A compromised renderer can maliciously exfiltrate sensitive query parameters, signed URLs, or session-bound capability tokens from cross-origin download URLs, leading to unauthorized access to user data.
Suggested Fix
- Sanitize Console URLs: In
RecordDownloadUseCountersPrePolicyCheck(), strip path and query components of the printed URL using.DeprecatedGetOriginAsURL().spec()or a similar sanitization helper before printing it to the console. This is consistent with other console warnings in the same file. - Browser-side Recomputation: Fully implement the
TODOinNavigationRequest::ComputeDownloadPolicy()by computing thekOpenerCrossOriginstate securely in the browser process rather than relying on untrusted parameters from the renderer.
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 failed to validate or recompute the kOpenerCrossOrigin download policy bit supplied by the renderer, and then printed the unsanitised URL when that bit was set.
Impact
This is a potential Site-Isolation bypass: a compromised renderer could exfiltrate sensitive query parameters, signed URLs or session-bound capability tokens from cross-origin download URLs, leading to unauthorised access to user data.
What the attacker needed
Attacker already has renderer code execution
The fix
The console message should print only the origin of the URL, and the kOpenerCrossOrigin state should be computed in the browser process rather than trusted from the renderer.
How it was found
- Compromise the sandboxed renderer to gain code execution inside the sandbox.
- Start a navigation to a cross-origin endpoint while forging the opener-cross-origin download policy bit.
- The request carries the victim's cookies and redirects to a capability-locked resource with query parameters.
- The endpoint responds with a download attachment header.
- The browser logs the full URL to the pre-navigation console, which the compromised renderer reads.
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 web page runs inside a locked-down part of the browser called a renderer, which is meant to be untrusted. Here the browser believed a hint from that untrusted part about why a download was happening, and used it to print a full web address into a page's developer console. If an attacker already controls the renderer, they could read that address, which might contain a secret token.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.