This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new aa1d79bdd6 Expand the explanation of the case sensitivity requirements
aa1d79bdd6 is described below
commit aa1d79bdd6403ab2ce222f8b57be63324da3e356
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 24 19:40:51 2026 +0000
Expand the explanation of the case sensitivity requirements
---
webapps/docs/config/resources.xml | 14 ++++++++------
webapps/docs/security-howto.xml | 20 ++++++++++++++++++--
2 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/webapps/docs/config/resources.xml
b/webapps/docs/config/resources.xml
index 94421c52f3..788f1530cc 100644
--- a/webapps/docs/config/resources.xml
+++ b/webapps/docs/config/resources.xml
@@ -72,9 +72,10 @@
outside the web application base path. If not specified, the default
value of the flag is <code>false</code>.</p>
<p><b>NOTE: This flag MUST NOT be set to true on the Windows platform
- (or any other OS which does not have a case sensitive filesystem),
- as it will disable case sensitivity checks, allowing JSP source code
- disclosure, among other security problems.</b></p>
+ (or in any other environment which does not have a case sensitive
+ filesystem), as it will disable a number of security measures and
allow,
+ among other things, bypassing of security constraints, viewing of JSP
+ source code and direct access to the WEB-INF directory.</b></p>
</attribute>
<attribute name="archiveIndexStrategy" required="false">
@@ -220,9 +221,10 @@
<p>This attribute is only available for <code>DirResourceSet</code> and
<code>FileResourceSet</code>.</p>
<p><b>NOTE: This flag MUST NOT be set to true on the Windows platform
- (or any other OS which does not have a case sensitive filesystem),
- as it will disable case sensitivity checks, allowing JSP source code
- disclosure, among other security problems.</b></p>
+ (or in any other environment which does not have a case sensitive
+ filesystem), as it will disable a number of security measures and allow,
+ among other things, bypassing of security constraints, viewing of JSP
+ source code and direct access to the WEB-INF directory.</b></p>
</attribute>
<attribute name="base" required="true">
diff --git a/webapps/docs/security-howto.xml b/webapps/docs/security-howto.xml
index 7730ee38b8..27ce813434 100644
--- a/webapps/docs/security-howto.xml
+++ b/webapps/docs/security-howto.xml
@@ -71,6 +71,21 @@
can't change the Tomcat configuration, deploy new web applications or
modify existing web applications. The Tomcat process runs with a umask of
007 to maintain these permissions.</p>
+ <p>Tomcat expects to be running on an operating system, file system and
Java
+ combination where <code>File.getCanonicalPath()</code> always returns the
+ same value (including case) for any given file. That requirement is met for
+ standard Linux and Windows production environments. Some non-standard (for
+ production) file systems where this is not the case include:</p>
+ <ul>
+ <li>kernel CIFS mount of an SMB share</li>
+ <li>vfat</li>
+ <li>ext4 casefold</li>
+ </ul>
+ <p>Running Tomcat in an enviroment where
+ <code>File.getCanonicalPath()</code> does not always returns the same value
+ for a given file will disable a number of security measures and allow,
among
+ other things, bypassing of security constraints, viewing of JSP source code
+ and direct access to the WEB-INF directory.</p>
<p>At the network level, consider using a firewall to limit both incoming
and outgoing connections to only those connections you expect to be
present.</p>
@@ -423,8 +438,9 @@
the links will be followed when deleting the context resources. Changing
this setting from the default of <code>false</code> on case insensitive
operating systems (this includes Windows) will disable a number of
- security measures and allow, among other things, direct access to the
- WEB-INF directory.</p>
+ security measures and allow, among other things, bypassing of security
+ constraints, viewing of JSP source code and direct access to the WEB-INF
+ directory.</p>
<p>The <strong>sessionCookiePathUsesTrailingSlash</strong> can be used to
work around a bug in a number of browsers (Internet Explorer, Safari and
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]