Summary
Listmonk's admin login can allow repeated TOTP guesses because the attempt counter resets when a user with a valid password starts a new login. An attacker who knows a password may use repeated login attempts to bypass 2FA and gain access to the protected account, potentially including a Super Admin account.
Affected context
The issue affects Listmonk versions from 6.0.0 up to, but not including, 7.0.0-beta.2. It occurs in the admin authentication flow when a valid password can be used to start new login attempts that reset the TOTP attempt counter, allowing additional guesses against a 2FA-protected account.
Exploit preconditions
- Attack surface: The Listmonk admin login endpoint must be reachable.
- Required access: The attacker must know or obtain a valid account password.
- Trigger point: TOTP verification during an admin login.
- Why exploitation is possible: Starting another password login resets the attempt counter, permitting further TOTP guesses instead of enforcing a persistent limit across attempts.
Why this happens
The authentication flow does not maintain an effective TOTP attempt limit across successive password logins. Resetting the counter for each new login undermines the intended restriction on repeated authentication attempts.
This maps to CWE-307: Improper Restriction of Excessive Authentication Attempts, where authentication controls fail to sufficiently limit repeated guesses.
Potential impact
- An attacker may bypass 2FA for an account whose password is known.
- An attacker could gain access to protected administrative functions.
- A compromised Super Admin account may enable broader control over Listmonk data and configuration.
- Unauthorized access may lead to data exposure or changes to mailing lists and campaigns.
General mitigation guidance
Defensive patterns focus on enforcing authentication-attempt limits that remain effective across login sessions.
Common approaches include:
- Track and rate-limit TOTP failures across successive password logins, rather than resetting the effective limit for each login.
- Apply progressive delays, temporary lockouts, or other bounded retry controls to repeated authentication failures.
- Ensure throttling is enforced consistently across relevant accounts, sessions, and request paths.
- Use secure-by-default 2FA flows that do not issue additional guessing opportunities when a new login begins.
- Limit administrative privileges and protect high-impact accounts with additional safeguards.
How teams detect issues like this
Detection can include:
- Reviewing authentication code for counters or limits that reset when a new session or login flow begins.
- Static analysis and code review checks for missing or inconsistent rate limits on password and TOTP verification.
- Monitoring for repeated login attempts and TOTP failures against the same account, including patterns spanning multiple login sessions.
- Enforcing authentication policies that require persistent, account-aware throttling for repeated failures.
Automated code review tools may help identify missing rate limits, but runtime monitoring is also useful for spotting repeated attempts.

