
A simple, easy-to-use POC for CVE-2025-42813 (Apache Tomcat versions below 9.0.99).
This repository contains a non-destructive, standalone PoC for CVE-2025-24813, a vulnerability in Apache Tomcat 9.0.55 allowing remote file upload via partial PUT requests. This exploit demonstrates code execution by uploading and accessing a benign JSP file.
proof.jsp: Harmless JSP payload to demonstrate code execution.cve_2025_24813_client_demo.py: Python3 script to detect, exploit, verify, log, and clean up.report.txt: Auto-generated log of the testing session.html2image for screenshot capture:
pip install html2image
python3 cve_2025_24813_client_demo.py
You will be prompted for:
192.168.1.100)8080)html2image)report.txtThis PoC is completely innocuous. It does:
Use only on systems you are authorized to test.
[✔] Server appears to support partial PUT!
[✅] Exploit verified: JSP executed successfully.
[URL] http://target:8080/uploads/proof.jsp
[*] Sleeping for 24.0 hours before cleanup...
git init
git add .
git commit -m "Initial CVE-2025-24813 PoC"
git remote add origin https://github.com/YOURUSERNAME/cve-2025-24813-poc.git
git push -u origin main
After 24 hours, the script automatically issues an HTTP DELETE to remove the JSP. You can also remove it manually.
MIT or custom license of your choice.
Maintained by [Your Name]. For authorized use only.
Server: Apache/Tomcat)proof.jsp upload with no side effectshtml2imagereport.txt.gitignore, LICENSE, GitHub badgessetup.sh for optional environment prepdisclosure.md for blog/report usebanner.pngThis project is designed to be shared publicly and used responsibly. If you find it useful, consider starring the repo and contributing via issues or pull requests.