CWE-620: Unverified Password Change
CWE版本: 4.18
更新日期: 2025-09-09
弱点描述
When setting a new password for a user, the product does not require knowledge of the original password, or using another form of authentication.
扩展描述
This could be used by an attacker to change passwords for another user, thus gaining the privileges associated with that user.
常见后果
影响范围: Access Control
技术影响: Bypass Protection Mechanism Gain Privileges or Assume Identity
潜在缓解措施
阶段: Architecture and Design
描述: When prompting for a password change, force the user to provide the original password in addition to the new password.
阶段: Architecture and Design
描述: Do not use "forgotten password" functionality. But if you must, ensure that you are only providing information to the actual user, e.g. by using an email address or challenge question that the legitimate user already provided in the past; do not allow the current user to change this identity information until the correct password has been provided.
观察示例
参考: CVE-2007-0681
Web app allows remote attackers to change the passwords of arbitrary users without providing the original password, and possibly perform other unauthorized actions.
参考: CVE-2000-0944
Web application password change utility doesn't check the original password.
引入模式
| 阶段 | 说明 |
|---|---|
| Architecture and Design | - |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
适用平台
编程语言
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| OWASP Top Ten 2004 | A3 | Broken Authentication and Session Management | CWE More Specific |
| Software Fault Patterns | SFP31 | Missing authentication | - |