
Dockerized exploit for Polkit privilege escalation (CVE-2021-4034) that grants root access via pkexec, with a simple script to run and verify.
The Polkit Privilege Escalation exploit. Dockerized for the sake of reproducibility.
docker build -t cve20214034 .
docker run -it --rm cve20214034
whoami # user
./gain-root.sh
whoami # root