Skip to content
File upload Advisory Intermediate CVE-2026-8527

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.

rachmat.abdul.ro Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Steps to reproduce the problem

  1. Run: poc_alt.py (serves on 127.0.0.1:8001).
  2. Chrome on Windows → open http://127.0.0.1:8001/.
  3. Right-click “Bypass: photo.jpg %25%25.url” → “Save link as…”.
  4. Save dialog suggests photo.jpg .url (type: Internet Shortcut). No .download rewrite.
  5. 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 \

The original report as published on the Chromium issue tracker, by rachmat.abdul.ro. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Run the provided proof-of-concept server on localhost.
  2. Open the served page in Chrome on Windows.
  3. Right-click the crafted link and choose 'Save link as…'.
  4. Observe the save dialog suggests a .url Internet Shortcut without the .download rewrite.
  5. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.