CAPECattack pattern

CAPEC-50 Password Recovery Exploitation

High Official page ↗
Abstraction
Standard
Status
Draft
Likelihood of attack
Medium
Typical severity
High
CAPEC version
3.9

Description

An attacker may take advantage of the application feature to help users recover their forgotten passwords in order to gain access into the system with the same privileges as the original user. Generally password recovery schemes tend to be weak and insecure.

Extended description

Most of them use only one security question. For instance, mother's maiden name tends to be a fairly popular one. Unfortunately in many cases this information is not very hard to find, especially if the attacker knows the legitimate user. These generic security questions are also re-used across many applications, thus making them even more insecure. An attacker could for instance overhear a coworker talking to a bank representative at the work place and supplying their mother's maiden name for verification purposes. An attacker can then try to log in into one of the victim's accounts, click on "forgot password" and there is a good chance that the security question there will be to provide mother's maiden name. A weak password recovery scheme totally undermines the effectiveness of a strong password scheme.

Execution flow

1. [Explore] Understand the password recovery mechanism and how it works. 2. [Exploit] Find a weakness in the password recovery mechanism and exploit it. For instance, a weakness may be that a standard single security question is used with an easy to determine answer.

Prerequisites

• The system allows users to recover their passwords and gain access back into the system. • Password recovery mechanism has been designed or implemented insecurely. • Password recovery mechanism relies only on something the user knows and not something the user has. • No third party intervention is required to use the password recovery mechanism.

Skills required

• [Low] Brute force attack • [Medium] Social engineering and more sophisticated technical attacks.

Consequences

• Confidentiality, Access Control, Authorization: Gain Privileges

Mitigations

• Use multiple security questions (e.g. have three and make the user answer two of them correctly). Let the user select their own security questions or provide them with choices of questions that are not generic. • E-mail the temporary password to the registered e-mail address of the user rather than letting the user reset the password online. • Ensure that your password recovery functionality is not vulnerable to an injection style attack.

Related

Can precede · CAPEC (5)

  • CAPEC-151 Identity Spoofing attack pattern
  • CAPEC-560 Use of Known Domain Credentials attack pattern
  • CAPEC-561 Windows Admin Shares with Stolen Credentials attack pattern
  • CAPEC-600 Credential Stuffing attack pattern
  • CAPEC-653 Use of Known Operating System Credentials attack pattern

Child of · CAPEC (1)

  • CAPEC-212 Functionality Misuse attack pattern

Weakness · CWE (2)

  • CWE-522 Insufficiently Protected Credentials weakness
  • CWE-640 Weak Password Recovery Mechanism for Forgotten Password weakness

Referenced by CWE · attack pattern (2)

  • CWE-522 Insufficiently Protected Credentials weakness
  • CWE-640 Weak Password Recovery Mechanism for Forgotten Password weakness