CWE-307: Failure to Restrict Excessive Authentication Attempts
Failure to Restrict Excessive Authentication Attempts
Weakness ID: 307 (Weakness Base)
Status: Draft
Description
Description Summary
The software does not implement sufficient measures to prevent
multiple failed authentication attempts within in a short time frame, making it
more susceptible to brute force attacks.
Time of Introduction
Architecture and Design
Applicable Platforms
Languages
All
Demonstrative Examples
Example 1
The following code, extracted from a servlet's doPost() method,
performs an authentication lookup every time the servlet is invoked and
makes no attempt to restrict excessive authentication attempts.
User accounts not disabled when they exceed a
threshold; possibly a resultant problem.
Potential Mitigations
Phase
Description
Common protection mechanisms include disconnecting a user,
implementing a timeout, locking out a targeted account, or requiring a
computational task on the user's part.