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
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
- 800-53|CM-7a.
- CAT|III
- CCI|CCI-000381
- Rule-ID|SV-222954r615938_rule
- STIG-ID|TCAT-AS-000520
- STIG-Legacy|SV-111433
- STIG-Legacy|V-102491
- Vuln-ID|V-222954