1. Home
  2. Security Hardening
  3. DISA STIG VMware vSphere 6.7 STS Tomcat V1R1
  4. VCST-67-000021 – The Security Token Service must use the ‘setCharacterEncodingFilter’ filter – setCharacterEncodingFilter filter – filter

VCST-67-000021 – The Security Token Service must use the ‘setCharacterEncodingFilter’ filter – setCharacterEncodingFilter filter – filter

Details

Invalid user input occurs when a user inserts data or characters into a hosted application’s data entry field and the hosted application is unprepared to process that data. This results in unanticipated application behavior, potentially leading to an application compromise. Invalid user input is one of the primary methods employed when attempting to compromise an application.

An attacker can also enter Unicode characters into hosted applications in an effort to break out of the document home or root home directory or to bypass security checks. VMware uses the standard Tomcat ‘SetCharacterEncodingFilter’ to provide a layer of defense against character encoding attacks. Filters are Java objects that perform filtering tasks on the request to a resource (a servlet or static content), the response from a resource, or both.

Solution

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

Configure the node with the child nodes listed below:


setCharacterEncodingFilter
/*


setCharacterEncodingFilter
org.apache.catalina.filters.SetCharacterEncodingFilter
encodingUTF-8ignorefalse
true

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: System and Information Integrity.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles