![]() war file corresponding to the requested name, Tomcat responds with a 302 redirect, adding a trailing slash to the request (which only then yields the 404). However if there is a directory in the application’s. When a request is received for a non-existent resource, Tomcat responds with a response code of 404 as normal. For regular directories the redirection is not disabled. Note ( 3) that the issue is only fixed for directories that have a defined for them (such as WEB-INF/). Update to at least one of the versions listed above to be sure of having the fix as described. Note ( 2) that earlier minor versions of Apache 6, 7, and 8 released after October 2015 may also be not vulnerable to this issue as fixes were introduced but re-engineered in the current versions due to regression issues. So to completely solve this issue, update Apache Tomcat and switch off mapperContextRootRedirectEnabled for any web applications that you wish to be undetectable by unauthenticated visitors. Note that two new configuration directives were introduced in these versions of Apache Tomcat, one to re-enable Tomcat identifying directories ( mapperDirectoryRedirectEnabled, off by default), and one to enable the web application presence identifying behaviour ( mapperContextRootRedirectEnabled, on by default because switching it off might cause issues with existing web applications). ![]() Upgrade your Apache Tomcat installation to at least version 9. ![]() Also, an attacker can determine if a certain string is a valid directory name in the application’s. The presence of a web application can be detected, and the use of Java can be detected even if identifying headers have been disabled (by trying to request the WEB-INF directory). war file, remote unauthenticated users could detect the presence of an application, and map out the internal structure of the application using a dictionary attack.
0 Comments
Leave a Reply. |