Skip to content
Info disclosure Write-up Intermediate

Your Ntlm Hashes At Risk Inside Cve 2025 24054

A vulnerability in Windows Explorer's handling of .library-ms files allows an attacker to craft a malicious XML file that forces Explorer to authenticate to an attacker-controlled SMB server, leaking the victim's NTLMv2-SSP hash. Attackers could then crack the hash offline or use it in relay attacks to impersonate the victim on other services.

Ismail Tasdelen Follow

Published on infosecwriteups.com

NTLM (New Technology LAN Manager) is Microsoft’s legacy authentication suite, still found in many enterprise environments. NTLMv2 improves on its predecessor by adding client and server challenges — so instead of sending your raw password hash, it sends a unique “NTLMv2-SSP” response on each authentication attempt.

Ismail Tasdelen, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, Windows Explorer parses .library-ms XML files and follows a URL pointing to an SMB share without sufficiently restricting or warning about outbound authentication to untrusted hosts.

Impact

An attacker could obtain the victim's NTLMv2-SSP hash, which may lead to offline password cracking or relay attacks to impersonate the victim on other services; SMB signing and channel binding can mitigate relay attacks.

What the attacker needed

Victim opens or right-clicks a .library-ms file; attacker controls an SMB server; outbound SMB allowed from victim

The fix

Microsoft released a security update on March 11, 2025 that addresses this flaw; additionally, enabling SMB signing and strict channel binding, blocking outbound SMB, and filtering malicious files can help.

How it was found

  1. Deliver a ZIP archive containing a malicious .library-ms file to the victim via malspam or a link.
  2. The victim extracts the file or right-clicks it, causing Explorer to process the .library-ms file.
  3. Explorer initiates an SMB connection to the attacker-controlled server specified in the XML.
  4. The attacker's server sends an NTLM challenge, and the victim's machine responds with the NTLMv2-SSP hash.
  5. The attacker captures the hash for offline cracking or relay attacks.

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 write-up has not been written yet. The Original tab links to the source.

When you open a special file in Windows, your computer may automatically try to log in to a network share. This report shows that a malicious file can trick your computer into logging in to a server controlled by an attacker, which hands over a piece of your login credentials. The attacker can then try to guess your password or use that credential to pretend to be you on other systems.

What is Info disclosure?

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

More by Ismail Tasdelen

View all

7 more disclosed reports, best first.

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.