
Proof-of-concept exploit for CVE-2021-4034, a local privilege escalation in pkexec, allowing arbitrary payload execution with root privileges.
POC for CVE-2021-4034
For ease of use, it accepts a C file payload instead of a hardcoded shell.
usage:
make
./poc payload.c
tested on Ubuntu 20.04.3 LTS - Linux target 5.4.0-81-generic