TCAT-AS-000930 - Default error pages for manager application must be customized.

Information

Default error pages that accompany the manager application provide educational information on how to configure user accounts and groups for accessing the manager application. These error pages provide responses to 401 (Unauthorized), 403 (Forbidden), and 404 (Not Found) JSP error codes and should not exist on production systems.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

From the Tomcat server as a privileged user:

sudo cd $CATALINA_BASE/webapps/manager/WEB-INF/jsp/

Use a file editor like nano or vi and edit the 401, 402, and 403 jsp files. Remove account information and make the files reflect generic error information that assists users but does not provide sample data to users.

Save the file and restart Tomcat:
sudo systemctl restart tomcat
sudo systemctl daemon-reload

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Tomcat_Application_Server_9_V3R1_STIG.zip

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-11b., CAT|III, CCI|CCI-001314, Rule-ID|SV-222976r961170_rule, STIG-ID|TCAT-AS-000930, STIG-Legacy|SV-111475, STIG-Legacy|V-102535, Vuln-ID|V-222976

Plugin: Unix

Control ID: 1665b473fe3cce1354371928b67f515635bf2291c791aa9eccc3f8aed75ba366