由 Redshift Cyber Security 开发的简单漏洞利用脚本,用于利用 (CVE-2024-41628) ClusterControl 本地文件包含(LFI)漏洞。
该漏洞影响 CMON API,特别是默认分别位于端口 9500 和 9501 的 RPC 和 RPC-TLS 用户接口。
由于 ClusterControl 通常以 root 身份运行,因此可以检索任何系统文件。
可检索的文件示例:
受影响的 ClusterControl 版本为 1.9.8 之前的 1.9.8-9778、2.0.0 之前的 2.0.0-9779 以及 2.1.0 之前的 2.1.0-9780。
python3 CVE-2024-41628.py ip port file
python3 CVE-2024-41628.py -h
python3 CVE-2024-41628.py 127.0.0.1 9500 /etc/shadow