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).
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/freebsd/local/rtld/execl_priv_escmsf undefined(execl_priv_esc) > show actions ...actions...msf undefined(execl_priv_esc) > set ACTION < action-name >msf undefined(execl_priv_esc) > show options ...show and set options...msf undefined(execl_priv_esc) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub