TCAT-AS-000510 - DefaultServlet debug parameter must be disabled.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The DefaultServlet serves static resources as well as serves the directory listings (if directory listings are enabled). It is declared globally in $CATALINA_BASE/conf/web.xml and by default is configured with the 'debug' parameter set to 0, which is disabled. Changing this to a value of 1 or higher sets the servlet to print debug level information. DefaultServlet debug setting must be set to 0 (disabled).

Solution

From the Tomcat server as a privileged user:

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

Examine the <init-param> elements within the <Servletclass> element, if the 'debug' <param-value>element is not '0'' change the 'debug' <param-value> to read '0'.

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_V2R7_STIG.zip

Item Details

References: CAT|III, CCI|CCI-000381, Rule-ID|SV-222953r879587_rule, STIG-ID|TCAT-AS-000510, STIG-Legacy|SV-111431, STIG-Legacy|V-102489, Vuln-ID|V-222953

Plugin: Unix

Control ID: fcd5829c7898c77460d8dc6e3e27ea34db1b0fb5e418ec275bde72b58b725ddd