https://bz.apache.org/bugzilla/show_bug.cgi?id=70377

            Bug ID: 70377
           Summary: Tomcat DoS, it's a *lateral* DoS against Active
                    Directory / LDAP / the database *via* Tomcat as an
                    amplifier
           Product: Tomcat 11
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Authentication
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: -------

LockOutRealm.filterLockedAccounts() calls super.authenticate(username,
credentials) — the full child-realm work (LDAP bind/search, DB query,
credential hash) — BEFORE checking isLocked(). The lock nulls the result; it
never prevents the work.



CVSS:7.6 High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H

this isn't just a Tomcat DoS, it's a *lateral* DoS against Active Directory /
LDAP / the database *via* Tomcat as an amplifier. The vulnerable component
(Tomcat LockOutRealm) impacts a separate component (the backing directory
server). Availability:High (unlimited amplification)

The exact vulnerable code path with line numbers (LockOutRealm.java:197/198,
252-269) and the call graph (isLocked() has exactly one caller, at line 258,
after auth)
Why this matters: design intent vs. reality — LockOutRealm exists specifically
to prevent brute-force DoS, but the defense doesn't apply to the expensive
component it was created to protect
The live exploitation proof (auth.log + timing table from the Docker run
against Tomcat )
| 1 | Timing/existence oracle (Confidentiality) | Backend lookup runs for
locked accounts → response timing differs by user existence → re-enables the
user enumeration LockOutRealm was designed to prevent |
| 2 | CPU/network amplification → DoS (Availability, primary) | 100 req/s
against a locked account = 100 LDAP binds/s indefinitely; lockout provides zero
mitigation; no valid creds needed |
| 3 | Amplification comparison table | Without LockOutRealm: 100 lookups/s;
with correct LockOutRealm: 0 lookups/s; with vulnerable LockOutRealm: 100
lookups/s — the defense is worse than absent because it creates a false sense
of protection |
| 4 | Prerequisites | Network access to Tomcat + a username (guessable:
admin/manager/email format). No credentials. |
| 5 | Affected configs | Every Tomcat using LockOutRealm (the recommended
production hardening) — since 7.0.x. Ironic: deployments that followed security
guidance are the ones affected. |
| 6 | Concrete scenario | Corporate Tomcat + JNDIRealm vs Active Directory:
attacker locks an account, sends 50 binds/s → degrades AD for the whole org |

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to