Skip to content
RCE Write-up Advanced

NSA Meeting Proposal for ProxyShell

The post describes chaining the ProxyShell and NSA Meeting vulnerabilities in Microsoft Exchange so that an unauthenticated attacker can obtain internal authentication tokens, create a mailbox, and trigger a stored deserialisation payload to run code on the server without dropping a web-shell. It also covers WAF evasion and debugging techniques used while building the exploit.

mdsec.co.uk

Published on mdsec.co.uk

Our best in class red team can deliver a holistic cyber attack simulation to provide a true evaluation of your organisation’s cyber resilience.](https://www.mdsec.co.uk/our-services/adversary-simulation/) - [{{media:1}}

Admin, on mdsec.co.uk

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 an unsafe deserialisation of the meeting poll parameters in Exchange, reachable after ProxyShell-style token forgery grants internal authentication.

Impact

An unauthenticated attacker could run code or commands on an unpatched Exchange server without creating a web-shell, though the authors note the NSA Meeting path alone required authentication and that WAF rules can be bypassed but a patch is the real fix.

What the attacker needed

Unpatched Exchange server; network access to Exchange endpoints; no credentials needed for ProxyShell stage

The fix

Microsoft patched both issues in the April and May 2021 Exchange updates, and the post stresses that applying the patch is the only real remedy.

How it was found

  1. Obtain a valid LegacyDN from the autodiscover endpoint using a default system mailbox address
  2. Use the LegacyDN against the MAPI endpoint to obtain a valid SID
  3. Create a Common-Access-Token from the SID and send it to the PowerShell back-end to authenticate
  4. Create a new mailbox with the New-Mailbox cmdlet and log into OWA
  5. Store the crafted meeting payload through the EWS endpoint
  6. Trigger the stored payload via the meeting poll handler page to run code on the server

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.

Microsoft Exchange is the mail server software many companies run. Two bugs in it were patched in 2021: one let an outsider trick the server into creating files it should not, and another let a crafted calendar meeting make the server run the attacker's code when the data was read back. The author combines both so an outsider can take over the server without leaving the usual tell-tale web-shell file behind.

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.