VCUI-80-000005 The vCenter UI service cookies must have secure flag set.

Information

The secure flag is an option that can be set by the application server when sending a new cookie to the user within an HTTP Response. The purpose of the secure flag is to prevent cookies from being observed by unauthorized parties due to the transmission of a cookie in clear text.

By setting the secure flag, the browser will prevent the transmission of a cookie over an unencrypted channel.

Solution

Navigate to and open:

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

Navigate to the <session-config> node and configure the <secure> setting as follows:

<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>

Restart the service with the following command:

# vmon-cli --restart vsphere-ui

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_8-0_Y24M08_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3, CAT|II, CCI|CCI-000213, Rule-ID|SV-259105r960792_rule, STIG-ID|VCUI-80-000005, Vuln-ID|V-259105

Plugin: Unix

Control ID: 409b0318c77118fcf8c3316a1ce7d3a019cdebb584fc9db74cf8af64591f5704