vendor:
FreeBSD
by:
Nikolaos Rangos (Kingcope)
8.8
CVSS
HIGH
Run-Time Link-Editor (rtld)
20
CWE
Product Name: FreeBSD
Affected Version From: FreeBSD 8.0-RELEASE
Affected Version To: FreeBSD 8.0-RELEASE
Patch Exists: YES
Related CWE: None
CPE: o:freebsd:freebsd
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: FreeBSD
2009
BiG TiME
There is an unbelievable simple local r00t bug in recent FreeBSD versions. The bug resides in the Run-Time Link-Editor (rtld). Normally rtld does not allow dangerous environment variables like LD_PRELOAD to be set when executing setugid binaries like 'ping' or 'su'. With a rather simple technique rtld can be tricked into accepting LD variables even on setugid binaries.
Mitigation:
Disable the setuid bit on all setuid binaries and restrict the environment variables that can be set.