Skip to content
RCE Write-up Advanced

Microsoft Exchange From Deserialization to Post-Auth RCE (CVE-2021–28482)

A post-authentication deserialisation flaw in Microsoft Exchange's MeetingPollHandler allowed an authenticated attacker to deserialise attacker-controlled data into a loosely typed property bag, enabling remote code execution via a gadget chain. The author demonstrated spawning a command on the server through a crafted meeting poll request.

testbnull.medium.com

Published on testbnull.medium.com

Sau sự kiện proxylogon xảy ra vào tháng 3 vừa rồi, có vẻ như đã tiếp một nguồn cảm hứng mới cho các Researcher đã/đang làm về Exchange.

Jang, on testbnull.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

Root cause

Likely the deserialiser accepted a loosely typed dictionary whose values could be any object, letting an attacker inject a gadget chain into the property bag.

Impact

An authenticated attacker could execute arbitrary commands on the Exchange server, with the spawned process running under the OWA application pool.

What the attacker needed

Authenticated Exchange user; ability to create a meeting poll

The fix

The vulnerable handler class was removed from the server in the April 2021 patch.

How it was found

  1. Create a meeting poll containing the malicious serialised payload.
  2. Trigger the MeetingPollHandler endpoint with the meeting ID to deserialise the payload.

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 a program receives data, it sometimes rebuilds objects from that data, a process called deserialisation. If the program trusts the data too much, an attacker can sneak in a special object that runs code when rebuilt. Here, an authenticated user could send such data through a meeting poll feature and get code to run on the mail server.

What is RCE?

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

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.