Inappropriate implementation in Downloads (CVE-2026-13925)
Chrome's SavePackage feature used the original pre-redirect URL when assigning Mark-of-the-Web to downloaded subresources, so an open redirect on an Intranet domain could cause a malicious archive to be tagged with the Intranet zone. When extracted, the executable inherited that zone and could run without SmartScreen warnings.
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: The SavePackage feature incorrectly uses the initial pre-redirect URL when annotating downloaded subresources with Mark-of-the-Web (MOTW). An attacker can leverage an open redirect on an Intranet domain to serve a malicious archive, assigning it an Intranet MOTW (ZoneId=1). This can bypass Windows SmartScreen protections when the extracted payload is executed.
Affected files:
content/browser/download/save_file_manager.cccontent/browser/download/save_package.cc
Estimated timestamp from git blame: 2025-10-22
Summary
When a user saves a webpage using the "Webpage, Complete" feature, Chrome downloads the page's subresources. If a subresource download involves an HTTP redirect, Chrome incorrectly annotates the downloaded file with Mark-of-the-Web (MOTW) information based on the initial pre-redirect URL rather than the final destination URL.
In enterprise environments where internal domains are mapped to the "Local Intranet" security zone (ZoneId=1), an attacker who can leverage an open redirect on a trusted domain can use this flaw to deliver malicious payloads that bypass Windows SmartScreen. By delivering the payload within a format considered NOT_DANGEROUS by Chrome's Safe Browsing policies (e.g., a .zip archive), the attacker avoids Chrome's defense-in-depth file renaming mitigations. When the user extracts the archive using Windows Explorer, the Intranet MOTW propagates to the extracted executable, allowing it to run without SmartScreen warnings.
Technical Details
- When
SavePackagediscovers a subresource, it initiates a save request viaSaveFileManager::SaveURL(content/browser/download/save_file_manager.cc). SaveURLconstructs aquarantine_callbackto be executed when the download finishes. This callback is created usingbase::BindOnceand captures the original pre-redirecturlby value (lines 235-239).- The network request is made. If the server responds with a redirect, the
SimpleURLLoaderfollows it to thefinal_url. - When the response starts,
SimpleURLLoaderHelper::OnResponseStartedis called. It parses theContent-Dispositionheader from the final response (e.g.,attachment; filename="payload.zip") and creates aSaveFileCreateInfoobject. It moves the existingquarantine_callbackinto this object without updating the bound URL. - On the UI thread,
SavePackage::GenerateFileNameis called. It usesnet::GenerateFileNameImpl, which prioritizes the filename from theContent-Dispositionheader. The file is namedpayload.zip. - Because
.zipis consideredNOT_DANGEROUSindownload_file_types.asciipb,ChromeDownloadManagerDelegate::SanitizeSavePackageResourceNamedoes not append a.downloadextension to the file. - Once the download completes,
SaveFinishedexecutes the boundquarantine_callback. - The callback invokes
SaveFileManager::QuarantineItem, which receives the original Intranet URL. This URL is eventually passed to Windows viaquarantine::InvokeAttachmentServices. - Windows writes the
:Zone.Identifierstream topayload.zip. Because the original URL is in the Local Intranet zone, Windows setsZoneId=1. - When the user extracts the ZIP using Windows Explorer, the
ZoneId=1MOTW is propagated to the extracted executable. Double-clicking the executable bypasses SmartScreen Application Reputation checks because the file is considered to have originated from a trusted Intranet source.
Potential Exploitation Steps
Please note our tooling agent cannot execute code; these are suggested steps to verify the vulnerability.
- On a Windows machine, add a domain (e.g.,
internal.example.com) to the "Local Intranet" zone via Internet Options (Security tab). - Prepare a malicious executable and compress it into a
payload.zipfile. - Host the
payload.zipfile on an attacker-controlled server (https://attacker.evil/payload.zip), ensuring the server responds with aContent-Disposition: attachment; filename="payload.zip"header. - Prepare a webpage that includes a subresource (e.g., an
<img>tag) with asrcpointing to a redirector on the trusted Intranet domain (e.g.,https://internal.example.com/redirect?url=https://attacker.evil/payload.zip). - Open the webpage in Chrome.
- Press Ctrl+S and save the page as "Webpage, Complete".
- Navigate to the associated
_filesfolder created by Chrome. - Check the Zone Identifier for the downloaded
payload.zipfile using PowerShell:Get-Content -Path 'C:\path\to\saved_page_files\payload.zip' -Stream Zone.Identifier - Observe that
ZoneId=1andHostUrlpoints tointernal.example.com. - Extract the ZIP file using Windows Explorer. Verify the extracted executable also has
ZoneId=1. - Run the extracted executable to confirm SmartScreen warnings are bypassed.
Suggested Fix
The quarantine_callback should not capture the URL by value before the network request begins. Instead, the callback signature should be updated to accept the final URL as a parameter when invoked at the end of the download. Alternatively, SimpleURLLoaderHelper::OnResponseStarted should re-bind the quarantine_callback with the final_url before passing it to SaveFileCreateInfo.
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
The quarantine callback captured the original URL by value before the network request, so redirects were not reflected in the Mark-of-the-Web annotation.
Impact
An attacker could bypass Windows SmartScreen protections when the extracted payload is executed, but this requires an open redirect on an Intranet domain and a user who saves the page and extracts the archive.
What the attacker needed
Windows machine; Intranet domain mapped to Local Intranet zone; Open redirect on that Intranet domain; Victim saves page as 'Webpage, Complete'
The fix
The quarantine callback should accept the final URL as a parameter or be re-bound with the final URL before use.
How it was found
- Add an internal domain to the Local Intranet zone on Windows.
- Host a malicious ZIP on an attacker server with a Content-Disposition attachment header.
- Create a webpage with a subresource pointing to an open redirect on the trusted Intranet domain that leads to the ZIP.
- Open the webpage in Chrome and save it as 'Webpage, Complete'.
- Check the Zone.Identifier stream of the downloaded ZIP and observe ZoneId=1.
- Extract the ZIP and run the executable to confirm SmartScreen is bypassed.
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 save a webpage, Chrome downloads extra files and tags them with a 'Mark-of-the-Web' so Windows knows where they came from. This report says Chrome used the wrong address (the one before a redirect) for that tag, so a file from an attacker could look like it came from a trusted company network. That could let a malicious program run without the usual Windows warning.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.