Umbra Wiki weakness weakness/CWE-307
Back to wiki

CWE-307 — Improper Restriction of Excessive Authentication Attempts

provenance: imported · CWE: CWE-307

CWE-307: Improper Restriction of Excessive Authentication Attempts

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Draft
Likelihood of exploit

Description

The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.

Common consequences

  • Access Control: Bypass Protection Mechanism

Mitigations

Architecture and Design — Common protection mechanisms include: Disconnecting the user after a small number of failed attempts Implementing a timeout Locking out a targeted account Requiring a computational task on the user's part.

Architecture and Design — Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. Consider using libraries with authentication capabilities such as OpenSSL or the ESAPI Authenticator. [REF-45]

References

  • CWE page: https://cwe.mitre.org/data/definitions/307.html
  • CWE list: https://cwe.mitre.org/data/index.html