When the URL contains a null byte (%00) in the URL parameter, the Tomcat error page will be displayed. This page includes the Tomcat server version.
Example: https://myhostname?page=
Is it possible to hide the server information and version on this page or redirect to the 'not found' page?
I have tried the following steps:
1. Stop Confluence.
2. Unpack the catalina.jar file:
jar xf catalina.jar org/apache/catalina/util/ServerInfo.properties
3. Update the ServerInfo.properties file by changing the server.info line to server.info=X.
4. Repackage the catalina.jar file:
jar uf catalina.jar org/apache/catalina/util/ServerInfo.properties
5. Start Confluence.
The Confluence server will start and the updated info will be displayed. However, the change will cause the instance health check to fail and multiple exceptions are logged in catalina.out.
The updated catalina.jar file has the same owner and permissions as the original file. When I restore the original file and restart Confluence, the instance health check will pass again.