STIGhubSTIGhub
STIGsRMF ControlsCompare
STIGhub— A free STIG search and compliance tool·STIGs updated 3 days ago
Powered by Pylon·Privacy·Terms·© 2026 Beacon Cloud Solutions, Inc.
← Back to VMware vRealize Automation 7.x tc Server Security Technical Implementation Guide

V-240826

CAT II (Medium)

tc Server HORIZON must use the setCharacterEncodingFilter filter.

Rule ID

SV-240826r879652_rule

STIG

VMware vRealize Automation 7.x tc Server Security Technical Implementation Guide

Version

V2R3

CCIs

CCI-001310

Discussion

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 into hosted applications in an effort to break out of the document home or root home directory or to bypass security checks. As a web server, tc Server can be vulnerable to character encoding attacks if steps are not taken to mitigate the threat. VMware utilizes the standard Tomcat SetCharacterEncodingFilter to provide a layer of defense against character encoding attacks. Filters are Java objects that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both.

Check Content

Navigate to and open /opt/vmware/horizon/workspace/conf/web.xml.

Verify that the 'setCharacterEncodingFilter' <filter> has been specified.

If the "setCharacterEncodingFilter" filter has not been specified or is commented out, this is a finding.

Fix Text

Navigate to and open /opt/vmware/horizon/workspace/conf/web.xml.

Configure the <web-app> node with the <filter> node listed below.

            <filter>
                <filter-name>setCharacterEncodingFilter</filter-name>
                <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
                <init-param>
                    <param-name>encoding</param-name>
                    <param-value>UTF-8</param-value>
                    <param-name>ignore</param-name>
                    <param-value>false</param-value>
                </init-param>
                <async-supported>true</async-supported>
            </filter>