Skip to content
Info disclosure Write-up Intermediate

Getting Malicious Office Documents to Fire with Protected View Enabled

Microsoft Office's Protected View does not apply when a document is rendered in the Windows File Explorer Preview Pane or in browser file-upload previews, so a malicious document with external HTTP or UNC references fires those requests as soon as it is merely selected. An attacker could therefore capture the victim's IP address, timestamps, OS/Office version, and even leak NTLMv2 hashes without the victim ever opening the file.

medium.com

Published on medium.com

I wanted to share an interesting behavior I discovered with Microsoft Office documents using a fully patched Windows 10 operating system and an up-to-date local installation of MS Office 365. I’ve been doing a lot of development work on my phishing tool lately, PhishAPI, and more or less stumbled across this new…

Curtis Brazzell, on medium.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

Impact

An attacker could capture the victim's IP address, action timestamps, OS and Office version details, and NTLMv2 hashes, though the technique did not work for embedded macros and the plain-text credential prompt did not appear in previews.

What the attacker needed

Preview Pane enabled in File Explorer; or browser file-upload preview; victim selects the document; attacker-controlled listener

The fix

Microsoft acknowledged the issue but said a fix does not meet its criteria for immediate security servicing, so no fix is currently available.

How it was found

  1. Create or obtain a Word document that references an external HTTP or UNC resource.
  2. Enable the Preview Pane in Windows File Explorer.
  3. Select the document so it is shown in the Preview Pane.
  4. Observe the external request arriving at the listener, without opening the document.

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.

Protected View is a Microsoft Office feature that stops remote documents from running active or remote content until you click 'Enable Editing'. This report shows that when you simply highlight a document in Windows File Explorer's Preview Pane, or when a browser shows a preview during a file upload, that protection is skipped. As a result, a booby-trapped document can quietly contact the attacker's server just by being selected, revealing information or a password hash.

What is Info disclosure?

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

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.