UCF STIG Viewer Logo

vSphere UI must limit the maximum size of a POST request.


Finding ID Version Rule ID IA Controls Severity
V-239684 VCUI-67-000003 SV-239684r679158_rule Medium
The "maxPostSize" value is the maximum size in bytes of the POST that will be handled by the container FORM URL parameter parsing. Limit its size to reduce exposure to a denial-of-service attack. If "maxPostSize" is not set, the default value of 2097152 (2MB) is used. Security Token Service is configured in its shipping state to not set a value for "maxPostSize"'.
VMware vSphere 6.7 UI Tomcat Security Technical Implementation Guide 2022-01-03


Check Text ( C-42917r679156_chk )
At the command prompt, execute the following command:

# xmllint --format /usr/lib/vmware-vsphere-ui/server/conf/server.xml | sed '2 s/xmlns=".*"//g' | xmllint --xpath '/Server/Service/Connector[@port="${http.port}"]/@maxPostSize' -

Expected result:

XPath set is empty

If the output does not match the expected result, this is a finding.
Fix Text (F-42876r679157_fix)
Navigate to and open /usr/lib/vmware-vsphere-ui/server/conf/server.xml.

Navigate to each of the nodes.

Remove any configuration for "maxPostSize".