module

Linux PolicyKit Race Condition Privilege Escalation

Disclosed
Apr 1, 2011
Created
May 30, 2018

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
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.