CWE-270: Privilege Context Switching Error

Base Draft Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

The product does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control.

常见后果

影响范围: Access Control

技术影响: Gain Privileges or Assume Identity

说明: A user can assume the identity of another user with separate privileges in another context. This will give the user unauthorized access that may allow them to acquire the access information of other users.

潜在缓解措施

阶段: Architecture and Design Operation

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

阶段: Architecture and Design Operation

策略: Environment Hardening

描述: Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.

阶段: Architecture and Design

策略: Separation of Privilege

描述: Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.

观察示例

参考: CVE-2002-1688

Web browser cross domain problem when user hits "back" button.

参考: CVE-2003-1026

Web browser cross domain problem when user hits "back" button.

参考: CVE-2002-1770

Cross-domain issue - third party product passes code to web browser, which executes it in unsafe zone.

参考: CVE-2005-2263

Run callback in different security context after it has been changed from untrusted to trusted. * note that "context switch before actions are completed" is one type of problem that happens frequently, espec. in browsers.

引入模式

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

适用平台

编程语言
Not Language-Specific (Undetermined)

分类映射

分类名称 条目ID 条目名称 映射适配度
PLOVER - Privilege Context Switching Error -
关键信息

CWE ID: CWE-270

抽象级别: Base

结构: Simple

状态: Draft

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