UCF STIG Viewer Logo

The vSphere UI must not show directory listings.


Overview

Finding ID Version Rule ID IA Controls Severity
V-239702 VCUI-67-000021 SV-239702r679212_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.
STIG Date
VMware vSphere 6.7 UI Tomcat Security Technical Implementation Guide 2022-01-03

Details

Check Text ( C-42935r679210_chk )
At the command prompt, execute 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' -

Expected result:


listings
false


If the output of the command does not match the expected result, this is a finding.
Fix Text (F-42894r679211_fix)
Navigate to and open /usr/lib/vmware-vsphere-ui/server/conf/web.xml.

Set the to "false" in all listing nodes.

Note: The setting should look like the following:


listings
false