SV-99641r1_rule
V-88991
SRG-APP-000246-WSR-000149
VROM-TC-000630
CAT II
10
Navigate to and open /usr/lib/vmware-vcops/tomcat-enterprise/webapps/suite-api/WEB-INF/web.xml.
Configure a <filter> node with the below configuration:
<filter>
<filter-name>xssfilter</filter-name>
<filter-class>com.vmware.vcops.ui.util.XssFilter</filter-class>
<init-param>
<!-- Comma separated list of URLs that will be sanitized by this filter -->
<param-name>fileIncludes</param-name>
<param-value>/vcops/services/api.js,/vcops/services/api-debug.js,/vcops/services/api-debug-doc.js</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>xssfilter</filter-name>
<url-pattern>/vcops/services/*</url-pattern>
</filter-mapping>
At the command prompt, execute the following command:
grep -B 2 -A 7 XssFilter /usr/lib/vmware-vcops/tomcat-enterprise/webapps/suite-api/WEB-INF/web.xml
If the XSS filter is not present and there is no result returned, then this is a finding.
V-88991
False
VROM-TC-000630
At the command prompt, execute the following command:
grep -B 2 -A 7 XssFilter /usr/lib/vmware-vcops/tomcat-enterprise/webapps/suite-api/WEB-INF/web.xml
If the XSS filter is not present and there is no result returned, then this is a finding.
M
3441