UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

ESX Agent Manager must not show directory listings.


Overview

Finding ID Version Rule ID IA Controls Severity
V-239394 VCEM-67-000023 SV-239394r674676_rule Medium
Description
Enumeration techniques, such as URL parameter manipulation, rely on being able to obtain information about the web server's directory structure by locating directories without default pages. In this scenario, the web server will display to the user a listing of the files in the directory being accessed. Ensuring that directory listing is disabled is one approach to mitigating the vulnerability. In Tomcat, directory listing is disabled by default but can be enabled via the "listings" parameter. Ensure that this node is not present in order to have the default effect.
STIG Date
VMware vSphere 6.7 EAM Tomcat Security Technical Implementation Guide 2022-01-03

Details

Check Text ( C-42627r674674_chk )
At the command prompt, execute the following command:

# xmllint --format /usr/lib/vmware-eam/web/webapps/eam/WEB-INF/web.xml | sed 's/xmlns=".*"//g' | xmllint --xpath '//param-name[text()="listings"]/parent::init-param' -

Expected result:

XPath set is empty

If the output of the command does not match the expected result, this is a finding.
Fix Text (F-42586r674675_fix)
Navigate to and open:

/usr/lib/vmware-eam/web/webapps/eam/WEB-INF/web.xml

Find and remove the entire block returned in the check.

Example:


listings
true