4.13 Restrict access to Tomcat tomcat-users.xml

Information

tomcat-users.xml contains authentication information for Tomcat applications. It is recommended that access to this file has the proper permissions to properly protect from unauthorized changes.

Solution

Perform the following to restrict access to tomcat-users.xml:
1. Set the ownership of the $CATALINA_HOME/conf/tomcat-users.xml to
tomcat_admin:tomcat.
2. Remove read, write, and execute permissions for the world.
3. Remove write permissions for the group.
# chown tomcat_admin:tomcat $CATALINA_HOME/conf/tomcat-users.xml
# chmod g-w,o-rwx $CATALINA_HOME/conf/tomcat-users.xml

See Also

https://workbench.cisecurity.org/files/266

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6

Plugin: Unix

Control ID: b08835d14c9a9eedf39644796a0af1f106cc948496e8d178720da053cf6adf4f