module
FreeBSD rtld execl() Privilege Escalation
| Disclosed | Created |
|---|---|
| Nov 30, 2009 | May 21, 2019 |
Disclosed
Nov 30, 2009
Created
May 21, 2019
Description
This module exploits a vulnerability in the FreeBSD
run-time link-editor (rtld).
The rtld `unsetenv()` function fails to remove `LD_*`
environment variables if `__findenv()` fails.
This can be abused to load arbitrary shared objects using
`LD_PRELOAD`, resulting in privileged code execution.
This module has been tested successfully on:
FreeBSD 7.2-RELEASE (amd64); and
FreeBSD 8.0-RELEASE (amd64).
run-time link-editor (rtld).
The rtld `unsetenv()` function fails to remove `LD_*`
environment variables if `__findenv()` fails.
This can be abused to load arbitrary shared objects using
`LD_PRELOAD`, resulting in privileged code execution.
This module has been tested successfully on:
FreeBSD 7.2-RELEASE (amd64); and
FreeBSD 8.0-RELEASE (amd64).
Authors
Platform
BSD
Architectures
x86, x64, armle, aarch64, 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':
NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.