Lookup Service must have Multipurpose Internet Mail Extensions (MIMEs) that invoke operating system shell programs disabled.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-256717VCLU-70-000012SV-256717r888742_ruleCCI-000381medium
Description
MIME mappings tell the Lookup Service what type of program various file types and extensions are and what external utilities or programs are needed to execute the file type. By ensuring that various shell script MIME types are not included in "web.xml", the server is protected against malicious users tricking the server into executing shell command files.
STIGDate
VMware vSphere 7.0 vCenter Appliance Lookup Service Security Technical Implementation Guide2023-06-15

Details

Check Text (C-256717r888742_chk)

At the command prompt, run the following command: # grep -En '(x-csh<)|(x-sh<)|(x-shar<)|(x-ksh<)' /usr/lib/vmware-lookupsvc/conf/web.xml If the command produces any output, this is a finding.

Fix Text (F-60335r888741_fix)

Navigate to and open: /usr/lib/vmware-lookupsvc/conf/web.xml Remove all of the following nodes lines: <mime-type>application/x-csh</mime-type> <mime-type>application/x-shar</mime-type> <mime-type>application/x-sh</mime-type> <mime-type>application/x-ksh</mime-type> Restart the service with the following command: # vmon-cli --restart lookupsvc Note: Delete the entire mime-mapping node for the target mime-type. Example: <mime-mapping> <extension>sh</extension> <mime-type>application/x-sh</mime-type> </mime-mapping>