
自動化権限昇格スクリプト。polkit の CVE-2021-3560 を悪用し、脆弱な Linux ディストリビューション上で root アクセスを取得します。
polkit エクスプロイトスクリプト
polkit サービスを使用して root に昇格するための自動スクリプト
| ディストリビューション | 脆弱性の有無 |
|---|---|
| RHEL 7 | いいえ |
| RHEL 8 | はい |
| Fedora 20 (またはそれ以前) | いいえ |
| Fedora 21 (またはそれ以降) | はい |
| Debian 10 (“buster”) | いいえ |
| Debian testing (“bullseye”) | はい |
| Ubuntu 18.04 | いいえ |
| Ubuntu 20.04 | はい |
ssh localhost
git clone https://github.com/tyleraharrison/CVE-2021-3560_PoC.git
cd CVE-2021-3560_PoC
./polkitRoot.sh
dos2unix polkitRoot.sh で改行コードを変更する必要がある場合があるUbuntu 20.04 でテスト済み
参考: https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/