The Polkit Privilege Escalation exploit. Dockerized for the sake of reproducibility.
docker build -t cve20214034 .
docker run -it --rm cve20214034whoami # user
./gain-root.sh
whoami # root- The original advisory: https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- The exploit used for inspiration: https://github.com/berdav/CVE-2021-4034
- Another exploit used for inspiration:https://github.com/ryaagard/CVE-2021-4034