
一个简单易用的 POC,用于 CVE-2025-42813(Apache Tomcat 9.0.99 以下版本)。
本仓库包含针对 CVE-2025-24813 的非破坏性独立 PoC,该漏洞存在于 Apache Tomcat 9.0.55 中,允许通过部分 PUT 请求进行远程文件上传。此漏洞利用通过上传并访问一个无害的 JSP 文件来演示代码执行。
proof.jsp:用于演示代码执行的无害 JSP 载荷。cve_2025_24813_client_demo.py:用于检测、利用、验证、记录和清理的 Python3 脚本。report.txt:自动生成的测试会话日志。html2image 用于截图捕获:
pip install html2image
python3 cve_2025_24813_client_demo.py
程序将提示您输入:
192.168.1.100)8080)html2image)report.txt此 PoC 完全无害。它:
仅限在您已获授权测试的系统上使用。
[✔] 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
24 小时后,脚本会自动发送 HTTP DELETE 请求以移除 JSP。您也可以手动删除它。
MIT 或您自定义的许可证。
由 [您的姓名] 维护。仅供授权使用。
Server: Apache/Tomcat)proof.jsp,无任何副作用html2image 捕获截图report.txt.gitignore、LICENSE、GitHub 徽章setup.shdisclosure.mdbanner.png本项目旨在公开分享并负责任地使用。如果您觉得它有用,请考虑为仓库点星,并通过 Issue 或拉取请求(Pull Request)进行贡献。