CWE-305: Authentication Bypass by Primary Weakness
CWE版本: 4.18
更新日期: 2025-09-09
弱点描述
The authentication algorithm is sound, but the implemented mechanism can be bypassed as the result of a separate weakness that is primary to the authentication error.
常见后果
影响范围: Access Control
技术影响: Bypass Protection Mechanism
观察示例
参考: CVE-2002-1374
The provided password is only compared against the first character of the real password.
参考: CVE-2000-0979
The password is not properly checked, which allows remote attackers to bypass access controls by sending a 1-byte password that matches the first character of the real password.
参考: CVE-2001-0088
Chain: Forum software does not properly initialize an array, which inadvertently sets the password to a single character, allowing remote attackers to easily guess the password and gain administrative privileges.
引入模式
| 阶段 | 说明 |
|---|---|
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
适用平台
编程语言
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| PLOVER | - | Authentication Bypass by Primary Weakness | - |