SV-222980r615938_rule
V-222980
SRG-APP-000315-AS-000094
TCAT-AS-001020
CAT II
10
From the Tomcat server console as a privileged user edit the $CATALINA_BASE/conf/server.xml file.
sudo nano $CATALINA_BASE/conf/server.xml file
Locate or add the LockOutRealm element. Make sure the LockOutRealm element is applied to the management application at a minimum (if the management application is in use on the system). This is done by ensuring the LockOutRealm is nested under the Engine, Host or directly within the management application Context container.
EXAMPLE:
<Realm className="org.apache.catalina.realm.LockOutRealm" failureCount="5" lockOutTime="600">
...
</Realm>
From the Tomcat server console, run the following command:
sudo grep -i LockOutRealm $CATALINA_BASE/conf/server.xml.
If there are no results or if the LockOutRealm is not used for the Tomcat management application context, this is a finding.
V-222980
False
TCAT-AS-001020
From the Tomcat server console, run the following command:
sudo grep -i LockOutRealm $CATALINA_BASE/conf/server.xml.
If there are no results or if the LockOutRealm is not used for the Tomcat management application context, this is a finding.
M
4094