Skip to content
RCE Advisory Advanced CVE-2021-31207

(Pwn2Own) Microsoft Exchange Server Arbitrary File Write Remote Code Execution Vulnerability

The mailbox export feature in Microsoft Exchange Server did not properly validate user-supplied data, allowing an authenticated attacker to upload arbitrary files. An attacker could leverage this to execute arbitrary code in the context of SYSTEM.

Orange Tsai Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Exchange Server. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

Orange Tsai(@orange_8361) from DEVCORE Research Team, on the Zero Day Initiative

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

How it worked

Impact

An attacker could execute arbitrary code with SYSTEM privileges on the Exchange Server, although authentication is required and the existing authentication mechanism can be bypassed.

What the attacker needed

Authentication (bypassable); access to mailbox export feature

The fix

Microsoft issued an update to correct this vulnerability.

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.

This is a flaw in Microsoft Exchange Server, a program that handles email. The mailbox export feature did not check what kind of files a user tried to upload, so an attacker could upload a harmful file. That file could then run with high system privileges, letting the attacker take control of the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.