PT-2017-16656 · Apache+5 · Apache Tomcat+5
Published
2017-05-10
·
Updated
2024-06-15
·
CVE-2017-5664
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Apache Tomcat versions 9.0.0.M1 through 9.0.0.M20
Apache Tomcat versions 8.5.0 through 8.5.14
Apache Tomcat versions 8.0.0.RC1 through 8.0.43
Apache Tomcat versions 7.0.0 through 7.0.77
Description
The error page mechanism of the Java Servlet Specification requires that, when an error occurs and an error page is configured for the error that occurred, the original request and response are forwarded to the error page with the original HTTP method. If the error page is a static file, expected behavior is to serve content of the file as if processing a GET request, regardless of the actual HTTP method. The Default Servlet in Apache Tomcat did not do this, which could lead to unexpected and undesirable results for static error pages, including the replacement or removal of the custom error page if the DefaultServlet is configured to permit writes. JSPs and custom Servlets used as error pages must ensure that they handle any error dispatch as a GET request, regardless of the actual method.
Recommendations
For Apache Tomcat versions 9.0.0.M1 through 9.0.0.M20, update to a version outside of this range to resolve the issue.
For Apache Tomcat versions 8.5.0 through 8.5.14, update to a version outside of this range to resolve the issue.
For Apache Tomcat versions 8.0.0.RC1 through 8.0.43, update to a version outside of this range to resolve the issue.
For Apache Tomcat versions 7.0.0 through 7.0.77, update to a version outside of this range to resolve the issue.
As a temporary workaround, consider configuring error pages to handle any error dispatch as a GET request, regardless of the actual method, to minimize the risk of exploitation.
Exploit
Fix
Improper Handling of Exceptional Conditions
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Apache Tomcat
Centos
Red Hat
Suse
Ubuntu