/

CVE-2026-128332

Severity:

HIGH RISK

(7.4)

TOTP Brute-Force (CWE-307) in Listmonk Admin Login

CVE-2026-128332

Deferred

Vulnerability type

Category:

Authentication Rate-Limit Bypass

CWE:

CWE-307

Impact:

Two-Factor Authentication Bypass and Account Takeover

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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.

Sources

SourceLink
github.comgithub.com/knadh/listmonk/blob/v7.0.0-beta.1/cmd/auth.go#L514-L568
github.comgithub.com/knadh/listmonk/blob/v7.0.0-beta.1/internal/tmptokens/tmptokens.go#L13-L88
github.comgithub.com/knadh/listmonk/commit/3f62a55c13dbc679b29238e890e4b90d6d4996d8
github.comgithub.com/knadh/listmonk/releases/tag/v7.0.0-beta.2
vulncheck.comvulncheck.com/advisories/listmonk-6.0.0-before-7.0.0-beta.2-totp-brute-force-via-admin-login-twofa

Frequently asked

questions

The admin login endpoint must be reachable, and exploitation requires a valid account password. The described flaw allows additional TOTP guesses by resetting the attempt counter across new password logins.

Yes. A valid password is a stated prerequisite; the vulnerability concerns the attempt limit on the subsequent TOTP verification.

Enforce a persistent limit on TOTP failures across successive login attempts, with throttling or lockout controls that cannot be reset simply by starting another login.

Design authentication limits to persist across sessions and login flows, review all verification paths for consistent throttling, and monitor repeated failures across accounts and sessions.

Find out what's already
exploitable in your codebase.