module

Linux PolicyKit Race Condition Privilege Escalation

Disclosed
2011-04-01
Created
2018-05-30

Description

A race condition flaw was found in the PolicyKit pkexec utility and polkitd
daemon. A local user could use this flaw to appear as a privileged user to
pkexec, allowing them to execute arbitrary commands as root by running
those commands with pkexec.

Those vulnerable include RHEL6 prior to polkit-0.96-2.el6_0.1 and Ubuntu
libpolkit-backend-1 prior to 0.96-2ubuntu1.1 (10.10) 0.96-2ubuntu0.1
(10.04 LTS) and 0.94-1ubuntu1.1 (9.10)

Authors

xi4oyu
0a29406d9794e4f9b30b3c5d6702c708

Platform

Linux

Architectures

x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/linux/local/pkexec
msf exploit(pkexec) > show targets
...targets...
msf exploit(pkexec) > set TARGET < target-id >
msf exploit(pkexec) > show options
...show and set options...
msf exploit(pkexec) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.