
# سكربت تصعيد صلاحيات آلي يستغل CVE-2021-3560 في polkit للحصول على صلاحيات الجذر (root) على توزيعات لينكس المعرضة للخطر.
نص برمجي لاستغلال 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 لأن GitHub غيّرها إلى CRLF و Bash لا يحب ذلكتم الاختبار على Ubuntu 20.04
المرجع: https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/