SV-99567r1_rule
V-88917
SRG-APP-000141-WSR-000083
VROM-TC-000380
CAT II
10
Navigate to and open /usr/lib/vmware-vcops/tomcat-web-app/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-web-app/conf/web.xml
If the “jsp” and “jspx” file extensions have not been mapped to the JSP servlet, this is a finding.
V-88917
False
VROM-TC-000380
At the command prompt, execute the following command:
grep -E '<url-pattern>\*\.jsp</url-pattern>' -B 2 -A 2 /usr/lib/vmware-vcops/tomcat-web-app/conf/web.xml
If the “jsp” and “jspx” file extensions have not been mapped to the JSP servlet, this is a finding.
M
3441