Tools
Remove the embedded Tomcat version from the error message
This article describes how to remove the version string from Tomcat HTTP error messages by repackaging the catalina.jar with an updated ServerInfo.properties file.
First published date
Last published date
Overview
catalina.jar file with an updated ServerInfo.properties file.Product section
Resolution
- Go to
<WHD_INSTAL_DIR>/bin/tomcat/lib. - Run the following command to unpack the
catalina.jarfile:jar xf catalina.jar org/apache/catalina/util/ServerInfo.properties
- Update the
ServerInfo.propertiesfile by changing theserver.infoline toserver.info=Apache Tomcat. - Run the following command to repackage the
catalina.jarfile:jar uf catalina.jar org/apache/catalina/util/ServerInfo.properties
Remove<WHD_INSTAL_DIR>/bin/tomcat/lib/org. This file was created when theServerInfo.propertiesfile was extracted. - Restart WHD.
PS: The Tomcat version vulnerability has been addressed in Web Help Desk version 12.7. The resolution above is only applicable for Web Help Desk version 12.6 and lower.