module
ptrace Sudo Token Privilege Escalation
| Disclosed | Created |
|---|---|
| Mar 24, 2019 | Sep 2, 2019 |
Disclosed
Mar 24, 2019
Created
Sep 2, 2019
Description
This module attempts to gain root privileges by blindly injecting into
the session user's running shell processes and executing commands by
calling `system()`, in the hope that the process has valid cached sudo
tokens with root privileges.
The system must have gdb installed and permit ptrace.
This module has been tested successfully on:
Debian 9.8 (x64); and
CentOS 7.4.1708 (x64).
the session user's running shell processes and executing commands by
calling `system()`, in the hope that the process has valid cached sudo
tokens with root privileges.
The system must have gdb installed and permit ptrace.
This module has been tested successfully on:
Debian 9.8 (x64); and
CentOS 7.4.1708 (x64).
Authors
chaignc
bcoles [email protected]
bcoles [email protected]
Platform
Linux
Architectures
x86, x64, armle, aarch64, riscv64le, riscv32le, ppc, mipsle, mipsbe
References
Module Options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
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.