Capture NTLM hash via LNK file download on Windows
Firefox on Windows allows downloading .lnk shortcut files without restriction, and the IconLocation property of such a file can cause Windows to send the user's NTLM hash to a remote server. An attacker could capture that hash by hosting a malicious shortcut file.
Originally disclosed on Mozilla
- Fixed in 26 days
- Paid in 30 days
- Disclosed after 26 days
I don't know if this can be considered as a bug but I think this could be a security issue on Windows.
It's possible to download .lnk files with FireFox without any restriction and, using the IconLocation property of the link file, it's possible to capture the NTLM hash.
I made a video (not listed on YouTube, nobody can see it): https://www.youtube.com/watch?v=Ml_jE-pwisI
In this video I try to explain and show you the problem.
I've tried to replicate this using a public IP address and it works.
Mozilla Firefox version: 101.0.1 (64-bit)
Hope it helps.
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 Firefox does not block or warn about downloading .lnk files, and Windows automatically authenticates to the remote host specified in the shortcut's IconLocation when rendering the icon.
Impact
An attacker could capture a victim's NTLM hash, which may allow offline cracking or relay attacks, though the report does not demonstrate what happens after capture.
What the attacker needed
Windows victim; Firefox browser; Victim downloads and opens a .lnk file; Attacker controls a remote host
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 .lnk file is a Windows shortcut. It can point to an icon stored on another computer. When Windows tries to load that icon, it may automatically send a login token (the NTLM hash) to that computer. The report says Firefox lets you download such a shortcut without warning, so a victim who opens it could leak their Windows password hash to an attacker.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.