SV-259158r935378_rule
V-259158
SRG-APP-000516-WSR-000174
VCLD-80-000100
CAT II
10
Navigate to and open:
/etc/applmgmt/appliance/lighttpd.conf
Locate the "setenv.add-response-header" parameter and add or update the following value:
"X-Frame-Options" => "Deny",
Note: The last line in the parameter does not need a trailing comma.
Restart the service with the following command:
# vmon-cli --restart applmgmt
At the command prompt, run the following command:
# /opt/vmware/sbin/vami-lighttpd -p -f /opt/vmware/etc/lighttpd/lighttpd.conf 2>/dev/null|awk '/setenv\.add-response-header/,/\)/'|sed -e 's/^[ ]*//'|grep "X-Frame-Options"
Expected result:
"X-Frame-Options" => "Deny",
If the output does not match the expected result, this is a finding.
Note: The command must be run from a bash shell and not from a shell generated by the "appliance shell". Use the "chsh" command to change the shell for the account to "/bin/bash". Refer to KB Article 2100508 for more details:
https://kb.vmware.com/s/article/2100508
V-259158
False
VCLD-80-000100
At the command prompt, run the following command:
# /opt/vmware/sbin/vami-lighttpd -p -f /opt/vmware/etc/lighttpd/lighttpd.conf 2>/dev/null|awk '/setenv\.add-response-header/,/\)/'|sed -e 's/^[ ]*//'|grep "X-Frame-Options"
Expected result:
"X-Frame-Options" => "Deny",
If the output does not match the expected result, this is a finding.
Note: The command must be run from a bash shell and not from a shell generated by the "appliance shell". Use the "chsh" command to change the shell for the account to "/bin/bash". Refer to KB Article 2100508 for more details:
https://kb.vmware.com/s/article/2100508
M
5571