【发布时间】:2021-10-24 18:34:21
【问题描述】:
我在 Tomcat 9 容器 (Debian 10.8) 上有一个 JEE 服务。在它前面是一个 Apache Web 服务器 + mod_proxy_ajp。
在我的 VH 中,我没有任何 /manager/html 上下文的 ProxyPass 规则,但如果在 Web 客户端上我重写我的 URL 添加 /..;/manager/html(例如:https://www.example.org/site/..;/manager/html)Tomcat 管理器要求凭据。
有什么技巧可以避免吗?也许使用modsecurity? 谢谢。
【问题讨论】:
-
为什么不直接将代理服务器配置为拒绝所有带分号的路径?甚至只是将它们重写回家
标签: apache tomcat httpd.conf directory-traversal