Skip to content
Info disclosure Write-up Intermediate

Leaking Account Credentials With Excel Hunting Vulns In office365

An Excel workbook containing an external link to a remote file causes Excel to automatically contact the specified server when the file is opened, leaking the user's NTLMv2 hash to the attacker. The attacker can then relay or crack the hash to potentially gain account access.

Tom Philippe Follow

Published on infosecwriteups.com

In the past few weeks, CVE-2023–23397 has made a lot of noise. When I first heard about this new Outlook vulnerability, I was very intrigued: a 0 click vulnerability that would leak the NTLMv2 hash of any account, and all we need are the victims’ email addresses?

Tom Philippe, 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 Excel automatically resolves external links to remote file shares when a workbook is opened, without warning the user or restricting the protocols used.

Impact

An attacker could obtain the victim's NTLMv2 hash, which could then be relayed to other systems or cracked to recover the password, potentially leading to account takeover.

What the attacker needed

Victim opens a malicious Excel file; attacker controls an SMB server

The fix

Microsoft should prevent Excel from automatically resolving external links to remote SMB shares when opening a workbook, or at least warn the user.

How it was found

  1. Create an Excel file with a cell containing an external link to a file on an attacker-controlled SMB server.
  2. Send the file to the victim and convince them to open it.
  3. When the victim opens the file, Excel attempts to access the remote file, sending the victim's NTLMv2 hash to the attacker's server.
  4. Capture the hash on the attacker's 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 write-up has not been written yet. The Original tab links to the source.

When you open an Excel file that contains a link to a file on another computer, Excel may automatically try to connect to that computer to fetch the file. If an attacker controls that computer, they can capture a special authentication code (called an NTLM hash) that your computer sends. That code can sometimes be used to impersonate you or cracked to reveal your password.

What is Info disclosure?

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

More by Tom Philippe

View all

2 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.