CWE•Base•Incomplete•20 recent CVEs
CWE-640Weak Password Recovery Mechanism for Forgotten Password
Description
The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.
Common consequences
- Access Control→Bypass Protection Mechanism,Gain Privileges or Assume IdentityWeak password recovery schemes completely undermine a strong password authentication scheme. An attacker could gain unauthorized access to the system by retrieving a legitimate user's authentication credentials.
- Availability→DoS: Resource Consumption (Other)An attacker could deny service to legitimate system users by launching a brute force attack on the password recovery mechanism using user ids of legitimate users.
- Integrity,Other→OtherThe system's security functionality is turned against the system by the attacker.
Potential mitigations
- Architecture and DesignMake sure that all input supplied by the user to the password recovery mechanism is thoroughly filtered and validated.
- Architecture and DesignDo not use standard weak security questions and use several security questions.
- Architecture and DesignMake sure that there is throttling on the number of incorrect answers to a security question. Disable the password recovery functionality after a certain (small) number of incorrect guesses.
- Architecture and DesignRequire that the user properly answers the security question prior to resetting their password and sending the new password to the e-mail address of record.
- Architecture and DesignNever allow the user to control what e-mail address the new password will be sent to in the password recovery mechanism.
- Architecture and DesignAssign a new temporary password rather than revealing the original password.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-1162149.12026-10-26CVE-2026-943808.12026-10-26CVE-2026-1159737.32026-10-24CVE-2026-582028.32026-10-23CVE-2026-463476.82026-10-23CVE-2026-463466.52026-10-23CVE-2026-860552026-10-23CVE-2026-438452026-10-20CVE-2026-1120356.32026-10-19CVE-2026-164372026-10-15CVE-2026-164362026-10-15CVE-2026-1083372026-10-14CVE-2026-1083352026-10-14CVE-2026-631597.42026-10-13CVE-2026-701758.12026-10-13CVE-2026-539977.42026-10-12CVE-2026-1092046.32026-10-12CVE-2026-1087376.82026-10-11CVE-2026-1076409.12026-10-08CVE-2026-192189.12026-10-08