4.14 Restrict access to Tomcat web.xml

Information

The Tomcat configuration file web.xml stores application configuration settings. It is recommended that access to this file properly protect from unauthorized changes.

Restricting access to this file will prevent local users from maliciously or inadvertently altering Tomcat's security policy.

Solution

Perform the following to restrict access to web.xml :

- Set the ownership of the $CATALINA_HOME/conf/web.xml to tomcat_admin:tomcat # chown tomcat_admin:tomcat $CATALINA_HOME/conf/web.xml
- Set the permissions for the $CATALINA_HOME/conf/web.xml file to 400 # chmod 400 $CATALINA_HOME/conf/web.xml

See Also

https://workbench.cisecurity.org/benchmarks/15137

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: ad826ab8a1103b12b56f18e571ece03b7a50627daa55d818c91ba36f34011a60