Improper Restriction of Excessive Authentication Attempts |
Weakness ID: 307 (Weakness Base) | Status: Draft |
Description Summary
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.
Example 2
In January 2009, an attacker was able to gain administrator access to a Twitter server because the server did not restrict the number of login attempts. The attacker targeted a member of Twitter's support team and was able to successfully guess the member's password using a brute force with a large number of common words. Once the attacker gained access as the member of the support staff, he used the administrator panel to gain access to 33 accounts that belonged to celebrities and politicians. Ultimately, fake Twitter messages were sent that appeared to come from the compromised accounts.
Example 2 References:
Kim Zetter. "Weak Password Brings ‘Happiness’ to Twitter Hacker". 2009-01-09. <http://www.wired.com/threatlevel/2009/01/professed-twitt/>. |
Example 3
In the following C/C++ example the validateUser method opens a socket connection, reads a username and password from the socket and attempts to authenticate the username and password.
The validateUser method will continuously check for a valid username and password without any restriction on the number of authentication attempts made. The method should limit the number of authentication attempts made to prevent brute force attacks as in the following example code.
Reference | Description |
---|---|
CVE-1999-1152 | Product does not disconnect or timeout after multiple failed logins. |
CVE-2001-1291 | Product does not disconnect or timeout after multiple failed logins. |
CVE-2001-0395 | Product does not disconnect or timeout after multiple failed logins. |
CVE-2001-1339 | Product does not disconnect or timeout after multiple failed logins. |
CVE-2002-0628 | Product does not disconnect or timeout after multiple failed logins. |
CVE-1999-1324 | User accounts not disabled when they exceed a threshold; possibly a resultant problem. |
Phase: Architecture and Design Common protection mechanisms include:
|
Phase: Architecture and Design Strategy: Libraries or Frameworks Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Consider using libraries with authentication capabilities such as OpenSSL or the ESAPI Authenticator. |
Nature | Type | ID | Name | View(s) this relationship pertains to |
---|---|---|---|---|
ChildOf | Weakness Class | 287 | Improper Authentication | Development Concepts (primary)699 Research Concepts (primary)1000 |
ChildOf | Category | 724 | OWASP Top Ten 2004 Category A3 - Broken Authentication and Session Management | Weaknesses in OWASP Top Ten (2004) (primary)711 |
ChildOf | Weakness Class | 799 | Improper Control of Interaction Frequency | Research Concepts1000 |
ChildOf | Category | 808 | 2010 Top 25 - Weaknesses On the Cusp | Weaknesses in the 2010 CWE/SANS Top 25 Most Dangerous Programming Errors (primary)800 |
Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
---|---|---|---|
PLOVER | AUTHENT.MULTFAIL | Multiple Failed Authentication Attempts not Prevented |
Submissions | ||||
---|---|---|---|---|
Submission Date | Submitter | Organization | Source | |
PLOVER | Externally Mined | |||
Modifications | ||||
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Sean Eidemiller | Cigital | External | |
added/updated demonstrative examples | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Relationships, Taxonomy Mappings | ||||
2009-03-10 | CWE Content Team | MITRE | Internal | |
updated Relationships | ||||
2009-07-27 | CWE Content Team | MITRE | Internal | |
updated Observed Examples | ||||
2009-12-28 | CWE Content Team | MITRE | Internal | |
updated Applicable Platforms, Demonstrative Examples, Potential Mitigations | ||||
Previous Entry Names | ||||
Change Date | Previous Entry Name | |||
2008-04-11 | Multiple Failed Authentication Attempts not Prevented | |||