No Account Lockout or Login Rate Limiting

The login function allows unlimited password attempts, so an attacker can guess passwords at speed without being slowed or blocked.

SeverityMedium
CVSS 3.16.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N Open in the calculator
CVSS 4.08.3 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N Open in the calculator
CWECWE-307: Improper Restriction of Excessive Authentication Attempts
OWASP Top 10A07:2025 Authentication Failures
MITRE ATT&CKT1110.001 Password Guessing, T1110.003 Password Spraying, T1110.004 Credential Stuffing
CategorySecurity Misconfiguration

Description

The authentication function places no effective limit on failed login attempts. Incorrect passwords for the same account are processed without the account being locked, the responses being delayed, a CAPTCHA being presented or the source being blocked, so an attacker can try large password lists against one account (brute force), a few common passwords against many accounts (password spraying), or username and password pairs leaked from other services (credential stuffing).

Guessing proceeds as fast as the server allows, which makes the compromise of any account with a weak or reused password likely, and a successful guess gives the attacker the user's access to the application and its data. Large volumes of attempts can also degrade the login service for other users. The risk is lower where multi-factor authentication is enforced or passwords are long and screened against breached lists, and higher for internet-facing services and administrative accounts.

The finding is confirmed by sending a series of failed attempts well beyond any reasonable threshold, observing that each continues to be processed, and showing that the correct password is still accepted at the end of the sequence. Partial controls are common variants: limits enforced only per source IP address, which are evaded by rotating addresses or by a client-supplied X-Forwarded-For header that the application trusts; counters that reset when the attacker signs in successfully to their own account; CAPTCHAs that are only checked by the client; and limits on the web login that do not apply to API, mobile, legacy or single sign-on endpoints checking the same password. Unlimited attempts at one-time codes, PINs and password reset codes are a closely related variant.

Remediation

  • Count failed attempts per account, not only per source address, and slow or block further attempts once a threshold is reached. Progressive delays or short temporary lockouts limit guessing while reducing the risk of attackers deliberately locking users out. NIST SP 800-63B requires verifiers to limit consecutive failed attempts on a single account to no more than 100.
  • Add defences against distributed attacks: detect many accounts failing from one source and one account failing from many sources, and present a CAPTCHA or other challenge when the pattern suggests automation.
  • Apply the same limits to every interface that checks the password, including APIs, mobile endpoints, legacy protocols and one-time code verification.
  • Do not trust client-supplied headers such as X-Forwarded-For for rate limiting unless they are set by a trusted proxy.
  • Enforce multi-factor authentication and screen passwords against breached lists, so that a guessed password is both less likely and less useful.
  • Log failed logins and lockouts, and alert on unusual volumes.

A rate limit at a web application firewall or API gateway can be applied as an interim measure. Confirm the fix by repeating the sequence of failed attempts and confirming that further attempts are delayed or refused.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Authentication and Sessions Findings

Every Authentication and Sessions finding