SV-99571r1_rule
V-88921
SRG-APP-000141-WSR-000083
VROM-TC-000390
CAT II
10
Navigate to and open /usr/lib/vmware-vcops/tomcat-enterprise/conf/web.xml.
Navigate to and locate the mapping for the JSP servlet. It is the <servlet-mapping> node that contains <servlet-name>jsp</servlet-name>.
Configure the <servlet-mapping> node to look like the code snippet below:
<!-- The mappings for the JSP servlet -->
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
At the command prompt, execute the following command:
grep -E '<url-pattern>\*\.jsp</url-pattern>' -B 2 -A 2 /usr/lib/vmware-vcops/tomcat-enterprise/conf/web.xml
If the “jsp” and “jspx” file extensions have not been mapped to the JSP servlet, this is a finding.
V-88921
False
VROM-TC-000390
At the command prompt, execute the following command:
grep -E '<url-pattern>\*\.jsp</url-pattern>' -B 2 -A 2 /usr/lib/vmware-vcops/tomcat-enterprise/conf/web.xml
If the “jsp” and “jspx” file extensions have not been mapped to the JSP servlet, this is a finding.
M
3441