Check: TOMCAT-000267-AS-00A170
Apache Tomcat Application Server STIG - Xylok Custom:
TOMCAT-000267-AS-00A170
(in version v1 r1.1)
Title
The Tomcat server must restrict error messages only to authorized users. (Cat II impact)
Discussion
If the application provides too much information in error logs and administrative messages to the screen, this could lead to compromise. The structure and content of error messages need to be carefully considered by the organization and development team. The extent to which the information system is able to identify and handle error conditions is guided by organizational policy and operational requirements. Application servers must protect the error messages that are created by the application server. All application server users' accounts are used for the management of the server and the applications residing on the application server. All accounts are assigned to a certain role with corresponding access rights. The application server must restrict access to error messages so only authorized users may view them. Error messages are usually written to logs contained on the file system. The application server will usually create new log files as needed and must take steps to ensure that the proper file permissions are utilized when the log files are created.
Check Content
Review the conf/server.xml file to determine if the error report valve has the attributes showReport and showServerInfo set to false If the showReport and showServerInfo attribtues are not set to false, this is a finding.
Fix Text
Configure the application server to restrict access to error messages so only authorized users may view or otherwise access them.
Additional Identifiers
Rule ID: SV-46728r3_rule
Vulnerability ID: V-35441
Group Title:
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001314 |
The information system reveals error messages only to organization-defined personnel or roles. |
Controls
Number | Title |
---|---|
SI-11 |
Error Handling |