SV-100667r1_rule
V-90017
SRG-APP-000141-WSR-000083
VRAU-TC-000375
CAT II
10
Navigate to and open /etc/vco/app-server/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 /etc/vco/app-server/web.xml
If the jsp and jspx file extensions have not been mapped to the JSP servlet, this is a finding.
V-90017
False
VRAU-TC-000375
At the command prompt, execute the following command:
grep -E '<url-pattern>\*\.jsp</url-pattern>' -B 2 -A 2 /etc/vco/app-server/web.xml
If the jsp and jspx file extensions have not been mapped to the JSP servlet, this is a finding.
M
3439