Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1020 CNY

100%

CVE-2021-4034 PoC — polkit 缓冲区错误漏洞

Source
Associated Vulnerability
Title:polkit 缓冲区错误漏洞 (CVE-2021-4034)
Description:A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.
Description
Ansible role to patch  RHSB-2022-001 Polkit Privilege Escalation - (CVE-2021-4034)
Readme
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
File Snapshot

[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
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →