CWE-272: Least Privilege Violation

Base Incomplete Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

The elevated privilege level required to perform operations such as chroot() should be dropped immediately after the operation is performed.

常见后果

影响范围: Access Control Confidentiality

技术影响: Gain Privileges or Assume Identity Read Application Data Read Files or Directories

说明: An attacker may be able to access resources with the elevated privilege that could not be accessed with the attacker's original privileges. This is particularly likely in conjunction with another flaw, such as a buffer overflow.

潜在缓解措施

阶段: Architecture and Design Operation

描述: Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.

阶段: Architecture and Design

策略: Separation of Privilege

描述: Follow the principle of least privilege when assigning access rights to entities in a software system.

阶段: Architecture and Design

策略: Separation of Privilege

检测方法

方法: Automated Static Analysis - Binary or Bytecode

有效性: SOAR Partial

方法: Dynamic Analysis with Automated Results Interpretation

有效性: SOAR Partial

方法: Manual Static Analysis - Source Code

有效性: High

方法: Automated Static Analysis - Source Code

有效性: SOAR Partial

方法: Automated Static Analysis

有效性: SOAR Partial

方法: Architecture or Design Review

有效性: High

引入模式

阶段 说明
Implementation REALIZATION: This weakness is caused during implementation of an architectural security tactic.
Operation -

适用平台

编程语言
Not Language-Specific (Undetermined)

分类映射

分类名称 条目ID 条目名称 映射适配度
7 Pernicious Kingdoms - Least Privilege Violation -
CLASP - Failure to drop privileges when reasonable -
CERT C Secure Coding POS02-C Follow the principle of least privilege -
The CERT Oracle Secure Coding Standard for Java (2011) SEC00-J Do not allow privileged blocks to leak sensitive information across a trust boundary -
The CERT Oracle Secure Coding Standard for Java (2011) SEC01-J Do not allow tainted variables in privileged blocks -
Software Fault Patterns SFP36 Privilege -
关键信息

CWE ID: CWE-272

抽象级别: Base

结构: Simple

状态: Incomplete

相关弱点
相关攻击模式
CAPEC-17 CAPEC-35 CAPEC-76