CWE-280: Improper Handling of Insufficient Permissions or Privileges
CWE版本: 4.18
更新日期: 2025-09-09
弱点描述
The product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. This may cause it to follow unexpected code paths that may leave the product in an invalid state.
常见后果
影响范围: Other
技术影响: Other Alter Execution Logic
潜在缓解措施
阶段: Architecture and Design
策略: Separation of Privilege
阶段: Implementation
描述: Always check to see if you have successfully accessed a resource or system functionality, and use proper error handling if it is unsuccessful. Do this even when you are operating in a highly privileged mode, because errors or environmental conditions might still cause a failure. For example, environments with highly granular permissions/privilege models, such as Windows or Linux capabilities, can cause unexpected failures.
观察示例
参考: CVE-2003-0501
Special file system allows attackers to prevent ownership/permission change of certain entries by opening the entries before calling a setuid program.
参考: CVE-2004-0148
FTP server places a user in the root directory when the user's permissions prevent access to the their own home directory.
引入模式
| 阶段 | 说明 |
|---|---|
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
适用平台
编程语言
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| PLOVER | - | Fails poorly due to insufficient permissions | - |
| WASC | 17 | Improper Filesystem Permissions | - |
| Software Fault Patterns | SFP4 | Unchecked Status Condition | - |