SV-256634r888393_rule
V-256634
SRG-APP-000266-WSR-000159
VCPF-70-000024
CAT II
10
Navigate to and open:
/usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml
Add the following section under the <web-apps> node:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/http_error.jsp</location>
</error-page>
Restart the service with the following command:
# vmon-cli --restart perfcharts
At the command prompt, run the following command:
# xmllint --format /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml | sed 's/xmlns=".*"//g' | xmllint --xpath '/web-app/error-page/exception-type["text()=java.lang.Throwable"]/parent::error-page' -
Expected result:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/http_error.jsp</location>
</error-page>
If the output does not match the expected result, this is a finding.
V-256634
False
VCPF-70-000024
At the command prompt, run the following command:
# xmllint --format /usr/lib/vmware-perfcharts/tc-instance/webapps/statsreport/WEB-INF/web.xml | sed 's/xmlns=".*"//g' | xmllint --xpath '/web-app/error-page/exception-type["text()=java.lang.Throwable"]/parent::error-page' -
Expected result:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/http_error.jsp</location>
</error-page>
If the output does not match the expected result, this is a finding.
M
5522