PolKit Privilege Escalation
Polkit (PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems. It provides an organized way for non-privileged processes to communicate with privileged ones.
Last updated
Polkit (PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems. It provides an organized way for non-privileged processes to communicate with privileged ones.
Last updated
Create a new user by sending a dbus message.
Then check the new user ID (uid).
Copy the output hash.
Enter the password you created e.g. “password123”. Now change to root .
PwnKit is vulnerability of Polkit to local privilege escalation. There are many exploits available. Below are examples:
To avoid the vulnerability, unset setuid from the pkexec executable.
Or simply upgrade the apt packages in most of distributions which are patched for the vulnerability.
(this is written by Python)