
자동화된 권한 상승 스크립트로, polkit의 CVE-2021-3560을 악용하여 취약한 Linux 배포판에서 루트 액세스 권한을 획득합니다.
polkit 익스플로잇 스크립트
polkit 서비스를 사용하여 루트 권한 상승을 위한 자동화 스크립트
| 배포판 | 취약 여부? |
|---|---|
| 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/