The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.
N/A
Threat Mapped score: 0.0
Industry: Finiancial
Threat priority: Unclassified
CVE: CVE-2019-0039
the REST API for a network OS has a high limit for number of connections, allowing brute force password guessing
CVE: CVE-1999-1152
Product does not disconnect or timeout after multiple failed logins.
CVE: CVE-2001-1291
Product does not disconnect or timeout after multiple failed logins.
CVE: CVE-2001-0395
Product does not disconnect or timeout after multiple failed logins.
CVE: CVE-2001-1339
Product does not disconnect or timeout after multiple failed logins.
CVE: CVE-2002-0628
Product does not disconnect or timeout after multiple failed logins.
CVE: CVE-1999-1324
User accounts not disabled when they exceed a threshold; possibly a resultant problem.
Phase | Note |
---|---|
Architecture and Design | COMMISSION: This weakness refers to an incorrect design related to an architectural security tactic. |
Intro: 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 [REF-236]. The attacker targeted a member of Twitter's support team and was able to successfully guess the member's password using a brute force attack by guessing a large number of common words. After gaining access as the member of the support staff, the attacker 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.
Intro: The following code, extracted from a servlet's doPost() method, performs an authentication lookup every time the servlet is invoked.
Body: However, the software makes no attempt to restrict excessive authentication attempts.
String username = request.getParameter("username"); String password = request.getParameter("password"); int authResult = authenticateUser(username, password);
Intro: This code attempts to limit the number of login attempts by causing the process to sleep before completing the authentication.
Body: However, there is no limit on parallel connections, so this does not increase the amount of time an attacker needs to complete an attack.
$username = $_POST['username']; $password = $_POST['password']; sleep(2000); $isAuthenticated = authenticateUser($username, $password);
Intro: 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.
Body: 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.
int validateUser(char *host, int port) { int socket = openSocketConnection(host, port); if (socket < 0) { printf("Unable to open socket connection"); return(FAIL); } int isValidUser = 0; char username[USERNAME_SIZE]; char password[PASSWORD_SIZE]; while (isValidUser == 0) { if (getNextMessage(socket, username, USERNAME_SIZE) > 0) { if (getNextMessage(socket, password, PASSWORD_SIZE) > 0) { isValidUser = AuthenticateUser(username, password); } } } return(SUCCESS); }
Intro: Consider this example from a real-world attack against the iPhone [REF-1218]. An attacker can use brute force methods; each time there is a failed guess, the attacker quickly cuts the power before the failed entry is recorded, effectively bypassing the intended limit on the number of failed authentication attempts. Note that this attack requires removal of the cell phone battery and connecting directly to the phone's power source, and the brute force attack is still time-consuming.