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

The vCenter UI service directory listings parameter must be disabled.


Overview

Finding ID Version Rule ID IA Controls Severity
V-259126 VCUI-80-000137 SV-259126r960963_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 this node is not present to have the default effect.
STIG Date
VMware vSphere 8.0 vCenter Appliance User Interface (UI) Security Technical Implementation Guide 2024-07-11

Details

Check Text ( C-62866r935280_chk )
At the command prompt, run the following command:

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

Example result:

XPath set is empty

If the "listings" parameter is specified and is not "false", this is a finding.

If the "listings" parameter does not exist, this is not a finding.
Fix Text (F-62775r935281_fix)
Navigate to and open:

/usr/lib/vmware-vsphere-ui/server/conf/web.xml

Find and remove the entire block returned in the check.

Example:


listings
true


Restart the service with the following command:

# vmon-cli --restart vsphere-ui