1. Home
  2. Security Hardening
  3. DISA STIG Apache Tomcat Application Server 9 V2R3
  4. TCAT-AS-000520 – DefaultServlet directory listings parameter must be disabled.

TCAT-AS-000520 – DefaultServlet directory listings parameter must be disabled.

Details

The DefaultServlet serves static resources as well as directory listings. It is declared globally in $CATALINA_BASE/conf/web.xml and by default is configured with the directory ‘listings’ parameter set to disabled. If no welcome file is present and the ‘listings’ setting is enabled, a directory listing is shown. Directory listings must be disabled.

Solution

From the Tomcat server as a privileged user:

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

Examine the elements within the element, if the ‘listings’element is ‘true’ change the ‘listings’ to read ‘false’.

sudo systemctl restart tomcat
sudo systemctl daemon-reload

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles