Maldoc Docx Msdt Inside Sandbox
A malicious Word document can call the MSDT URL protocol to run arbitrary code on a victim's Windows machine, a flaw known as Follina. The author demonstrates creating such a document with a Python script and getting notepad.exe to launch on a Windows 10 target.
Hi Fellow hackers , Today we will explore the details of MSDT vulnerability and will exploit in the real time
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 the MSDT URL protocol handler can be invoked from an Office document and executes commands without adequate validation.
Impact
An attacker could run arbitrary code on the target system, though the demonstration only launched notepad.exe.
What the attacker needed
Victim opens a malicious document; Windows target with MSDT enabled; attacker can deliver the file
The fix
Microsoft had not released a patch at the time; the workaround was to disable the MSDT URL protocol by deleting its registry key.
How it was found
- Run the provided Python script with sudo to generate a malicious DOC file.
- Send the malicious document to the victim, for example by phishing email or a simple Python dropper.
- Open the malicious document on the Windows 10 victim machine.
- Observe that arbitrary programs such as notepad.exe are launched.
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.
MSDT is a Windows troubleshooting tool that can be started from a link inside a document. Because Word would follow that link without proper checks, a booby-trapped document could make the computer run the attacker's commands. The author shows this working in a test setup.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.