UCF STIG Viewer Logo

The Security Token Service must limit the maximum size of a POST request.


Finding ID Version Rule ID IA Controls Severity
V-239654 VCST-67-000003 SV-239654r816687_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 STS Tomcat Security Technical Implementation Guide 2022-01-03


Check Text ( C-42887r816685_chk )
Connect to the PSC, whether external or embedded.

At the command prompt, execute the following command:

# xmllint --format /usr/lib/vmware-sso/vmware-sts/conf/server.xml | sed '2 s/xmlns=".*"//g' | xmllint --xpath '/Server/Service/Connector[@port="${bio-custom.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-42846r816686_fix)
Connect to the PSC, whether external or embedded.

Navigate to and open /usr/lib/vmware-sso/vmware-sts/conf/server.xml.

Navigate to each of the nodes.

Remove any configuration for "maxPostSize".