关联漏洞
标题:
polkit 缓冲区错误漏洞
(CVE-2021-4034)
描述:polkit是一个在类 Unix操作系统中控制系统范围权限的组件。通过定义和审核权限规则,实现不同优先级进程间的通讯。 polkit 的 pkexec application存在缓冲区错误漏洞,攻击者可利用该漏洞通过精心设计环境变量诱导pkexec执行任意代码。成功执行攻击后,如果目标计算机上没有权限的用户拥有管理权限,攻击可能会导致本地权限升级。
描述
Ansible role to patch RHSB-2022-001 Polkit Privilege Escalation - (CVE-2021-4034)
介绍
Role Name
=========
Ansible role to patch RHSB-2022-001 Polkit Privilege Escalation - (CVE-2021-4034)
Requirements
------------
Repositories should be configured.
Role Variables
--------------
All the variables are in /vars/main.yml file. A list of polkit vulnerable packages is also added to the file as a list, you can update the list depending on your use case. You can also add the flavors of linux and their releases.
Dependencies
------------
Please make sure the repositories are already configured!!!
Example Playbook
----------------
Download repo in your roles directory:
```
- hosts: all
roles:
- polkit_CVE-2021-4034
```
If you are downloading and using outside your roles directory use absolute path or relative path to execute role:
```
- hosts: all
roles:
- /home/user/some-direcotory/polkit_CVE-2021-4034
```
Structure
------------
```
polkit_CVE-2021-4034/
├── defaults
│ └── main.yml
├── files
├── handlers
│ └── main.yml
├── meta
│ └── main.yml
├── README.md
├── tasks
│ ├── main.yml
│ └── patch.yml
├── templates
├── tests
│ ├── inventory
│ └── test.yml
└── vars
└── main.yml
```
License
-------
GNU Public License v3.0
Author Information
------------------
Ziad Saleemi
文件快照
[4.0K] /data/pocs/e1e39ea9d3a1ad94701bbf562598d337232b2382
├── [4.0K] defaults
│ └── [ 30] main.yml
├── [4.0K] handlers
│ └── [ 30] main.yml
├── [ 34K] LICENSE
├── [4.0K] meta
│ └── [1.6K] main.yml
├── [1.3K] README.md
├── [4.0K] tasks
│ ├── [ 666] main.yml
│ └── [ 249] patch.yml
├── [4.0K] tests
│ ├── [ 11] inventory
│ └── [ 64] test.yml
└── [4.0K] vars
└── [1.4K] main.yml
6 directories, 10 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。