Insufficient validation of untrusted input in Downloads (CVE-2026-8527)
Chrome on Windows failed to rewrite a dangerous .url file extension when saving a link whose suggested filename contained percent-encoded characters that the Windows shell stripped. An attacker could get a victim to save and open a file that launches a local executable.
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
Steps to reproduce the problem
- Run: poc_alt.py (serves on 127.0.0.1:8001).
- Chrome on Windows → open http://127.0.0.1:8001/.
- Right-click “Bypass: photo.jpg %25%25.url” → “Save link as…”.
- Save dialog suggests photo.jpg .url (type: Internet Shortcut). No .download rewrite.
- Save & open: launches calc.exe (payload).
Problem Description
- Windows shell strips %…% from the suggested filename, making the basename appear extensionless.
- GenerateSafeFileName() in download_target_determiner.cc (Windows path) calls net::GenerateSafeFileName() with old_extension captured before sanitization.
- Because the basename now seems extensionless, the dangerous-extension rewrite is skipped, and .url is reattached verbatim.
Summary
Chrome on Windows can be tricked into saving a dangerous .url InternetShortcut without the .download
Additional Data
Category: Security
Chrome Channel: Stable
Regression: N/A \
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 safe-filename logic captured the original extension before sanitisation, so after the Windows shell stripped percent-encoded characters the basename appeared extensionless and the dangerous-extension rewrite was skipped.
Impact
An attacker could trick a Windows Chrome user into saving and opening a .url file that runs a local executable, though the user must manually save and open the file.
What the attacker needed
Chrome on Windows; victim saves the link; victim opens the saved file
How it was found
- Run the provided proof-of-concept server on localhost.
- Open the served page in Chrome on Windows.
- Right-click the crafted link and choose 'Save link as…'.
- Observe the save dialog suggests a .url Internet Shortcut without the .download rewrite.
- Save and open the file, which launches a local executable.
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 link in Chrome, the browser tries to make the filename safe by adding '.download' to risky file types like '.url'. Here, a filename with special percent signs confused the check, so the dangerous file was saved without that protection. Opening it could run a program on the victim's computer.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.