SV-256810r889429_rule
V-256810
SRG-APP-000516-WSR-000174
VCUI-70-000033
CAT II
10
Navigate to and open:
/usr/lib/vmware-vsphere-ui/server/conf/web.xml
Navigate to the /<web-apps>/<servlet>/<servlet-name>default</servlet-name>/ node and remove the following node:
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
Restart the service with the following command:
# vmon-cli --restart vsphere-ui
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 '/web-app/servlet/servlet-name[text()="default"]/../init-param/param-name[text()="readonly"]/../param-value[text()="false"]' -
Expected result:
XPath set is empty
If the output of the command does not match the expected result, this is a finding.
V-256810
False
VCUI-70-000033
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 '/web-app/servlet/servlet-name[text()="default"]/../init-param/param-name[text()="readonly"]/../param-value[text()="false"]' -
Expected result:
XPath set is empty
If the output of the command does not match the expected result, this is a finding.
M
5528