CWE-266 特权授予不正确

admin 2022年1月5日21:05:01CWE(弱点枚举)评论10 views2993字阅读9分58秒阅读模式

CWE-266 特权授予不正确

Incorrect Privilege Assignment

结构: Simple

Abstraction: Base

状态: Draft

被利用可能性: unkown


A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.


  • cwe_Nature: ChildOf cwe_CWE_ID: 269 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: CanAlsoBe cwe_CWE_ID: 286 cwe_View_ID: 1000


Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}


范围 影响 注释
Access Control Gain Privileges or Assume Identity A user can access restricted functionality and/or sensitive information that may include administrative functionality and user accounts.


MIT-1 ['Architecture and Design', 'Operation']


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

MIT-17 ['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.


Evidence of privilege change:

bad C

/ do some stuff /


bad Java

AccessController.doPrivileged(new PrivilegedAction() {

public Object run() {

// privileged code goes here, for example:

return null;
// nothing to return


This application sends a special intent with a flag that allows the receiving application to read a data file for backup purposes.

bad Java

Intent intent = new Intent();

attack Java

public class CallReceiver extends BroadcastReceiver {

public void onReceive(Context context, Intent intent) {

Uri userData = intent.getData();



Any malicious application can register to receive this intent. Because of the FLAG_GRANT_READ_URI_PERMISSION included with the intent, the malicious receiver code can read the user's data.


标识 说明 链接
CVE-1999-1193 untrusted user placed in unix "wheel" group
CVE-2005-2741 Product allows users to grant themselves certain rights that can be used to escalate privileges.
CVE-2005-2496 Product uses group ID of a user instead of the group, causing it to run with different privileges. This is resultant from some other unknown issue.
CVE-2004-0274 Product mistakenly assigns a particular status to an entity, leading to increased privileges.


映射的分类名 ImNode ID Fit Mapped Node Name
PLOVER Incorrect Privilege Assignment
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



特别标注: 本站(CN-SEC.COM)所有文章仅供技术研究,若将其信息做其他用途,由用户承担全部法律及连带责任,本站不承担任何法律及连带责任,请遵守中华人民共和国安全法.
  • 我的微信
  • 微信扫一扫
  • weinxin
  • 我的微信公众号
  • 微信扫一扫
  • weinxin
  • 本文由 发表于 2022年1月5日21:05:01
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                  CWE-266 特权授予不正确


匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: