Skip to content

ErrorReportValve showReport must be set to false.

An XCCDF Rule

Description

The Error Report Valve is a simple error handler for HTTP status codes that will generate and return HTML error pages. It can also be configured to return pre-defined static HTML pages for specific status codes and/or exception types. Disabling showReport will result in no error message or stack trace being send to the client. This setting can be tailored on a per-application basis within each application specific web.xml.

ID
SV-222977r961170_rule
Version
TCAT-AS-000940
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

As a privileged user on the Tomcat server:

Edit the $CATALINA_BASE/conf/server.xml file.

Create or modify an ErrorReportValve <Valve> element nested beneath each <Host> element.