TCAT-AS-001030 - LockOutRealms failureCount attribute must be set to 5 failed logins for admin users.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

A LockOutRealm adds the ability to lock a user out after multiple failed logins. Setting the failureCount attribute to 5 will lock out a user account after 5 failed attempts.

LockOutRealm is an implementation of the Tomcat Realm interface that extends the CombinedRealm to provide user lock out functionality if there are too many failed authentication attempts in a given period of time. A LockOutRealm is created by wrapping around a standard realm such as a JNDI Directory Realm which connects Tomcat to an LDAP Directory.

A Catalina container (Engine, Host, or Context) may contain no more than one Realm element (although this one Realm may itself contain multiple nested Realms). In addition, the Realm associated with an Engine or a Host is automatically inherited by lower-level containers unless the lower level container explicitly defines its own Realm. If no Realm is configured for the Engine, an instance of the Null Realm will be configured for the Engine automatically.

Solution

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. Set LockOutRealm failureCount='5'

EXAMPLE:
<Realm className='org.apache.catalina.realm.LockOutRealm' failureCount='5' lockOutTime='600'>
...
</Realm>

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Tomcat_Application_Server_9_V2R4_STIG.zip

Item Details

References: CAT|II, CCI|CCI-002322, Rule-ID|SV-222981r615938_rule, STIG-ID|TCAT-AS-001030, STIG-Legacy|SV-111485, STIG-Legacy|V-102545, Vuln-ID|V-222981

Plugin: Unix

Control ID: 8647655fabd0926b202961c78cb7c39ba04d4107036f12c18ddf7e83aec1adf5