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.
[object Object]
Common consequences
- Access Control→Gain Privileges or Assume IdentityAn attacker could gain unauthorized access to the system by retrieving 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-183632026-07-30CVE-2026-646355.32026-07-30CVE-2026-625175.32026-07-21CVE-2026-624865.02026-07-21CVE-2026-611817.62026-07-21CVE-2026-611436.42026-07-21CVE-2026-610497.12026-07-21CVE-2026-606587.52026-07-21CVE-2026-606508.02026-07-21CVE-2026-606488.02026-07-21CVE-2026-606468.02026-07-21CVE-2026-535959.42026-07-20CVE-2026-563087.32026-07-12CVE-2026-154797.32026-07-12CVE-2026-151558.82026-07-11CVE-2026-76558.12026-07-11CVE-2026-552078.82026-07-09CVE-2026-130208.12026-07-07CVE-2026-130199.82026-07-07CVE-2026-341985.32026-07-07