STIGUI
V-256795CAT II — Medium severitySV-256795r1043180_rule

vSphere UI must restrict its cookie path.

Rule version VCUI-70-000018 · STIG v1 · 2026-09-09

Discussion

Cookies are used to exchange data between the web server and the client. Cookies, such as a session cookie, may contain session information and user credentials used to maintain a persistent connection between the user and the hosted application since HTTP/HTTPS is a stateless protocol.

vSphere UI is bound to the "/ui" virtual path behind the reverse proxy, and its cookies are configured as such. This configuration must be confirmed and maintained.

Check

At the command prompt, run the following command:

# xmllint --format /usr/lib/vmware-vsphere-ui/server/conf/context.xml | xmllint --xpath '/Context/@sessionCookiePath' - 

Expected result:

sessionCookiePath="/ui"

If the output does not match the expected result, this is a finding.

Fix

Navigate to and open:

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

Add the following configuration to the <Context> node:

sessionCookiePath="/ui"

Example:

<Context useHttpOnly="true" sessionCookieName="VSPHERE-UI-JSESSIONID" sessionCookiePath="/ui">

Restart the service with the following command:

# vmon-cli --restart vsphere-ui

Identifiers

Group ID
V-256795
Group title
SRG-APP-000223-WSR-000011
Rule ID
SV-256795r1043180_rule
Check ID
C-60470r889382_chk
Fix ID
F-60413r889383_fix