Description
Fixed in Apache Tomcat 6.0.10:
-
important: Directory traversal CVE-2007-0450
Tomcat permits '\', '%2F' and '%5C' as path delimiters. When Tomcat is used behind a proxy (including, but not limited to, Apache HTTP server with mod_proxy and mod_jk) configured to only proxy some contexts, a HTTP request containing strings like "/\../" may allow attackers to work around the context restriction of the proxy, and access the non-proxied contexts.
The following Java system properties have been added to Tomcat to provide additional control of the handling of path delimiters in URLs (both options default to false):
* org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH: true|false
* org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH: true|false
Due to the impossibility to guarantee that all URLs are handled by Tomcat as they are in proxy servers, Tomcat should always be secured as if no proxy restricting context access was used.
Affected Apache Tomcat version (6.0.0 - 6.0.9).
Remediation
Upgrade Apache Tomcat to the latest version.
References
Related Vulnerabilities
Dolibarr Incorrect Default Permissions Vulnerability (CVE-2022-40871)
WordPress Plugin Survey Maker-Best WordPress Survey Cross-Site Scripting (3.1.3)
Drupal Cryptographic Issues Vulnerability (CVE-2013-6386)
WordPress 5.0.x Multiple Vulnerabilities (5.0 - 5.0.20)
Magento Unrestricted Upload of File with Dangerous Type Vulnerability (CVE-2019-7930)