Skip to content
RCE Advisory Advanced CVE-2021-31198

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

The OAB service in Microsoft Exchange Server did not properly validate user-supplied data, allowing an attacker to write arbitrary files to OAB folders. An attacker could leverage this to execute arbitrary code as SYSTEM, though authentication is required and the existing authentication mechanism can be bypassed.

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

rskvp93 of Team Viettel - Viettel Cyber Security, 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, but authentication is required and the existing authentication mechanism can be bypassed.

What the attacker needed

Authentication (bypassable); target runs Microsoft Exchange Server

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's Offline Address Book (OAB) service, which handles address book downloads. Because the service didn't check what kind of data users sent, an attacker could trick it into writing files to places it shouldn't. That could let the attacker run their own code on the server with the highest privileges.

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.