cve/2009/CVE-2009-4146.md

18 lines
920 B
Markdown
Raw Normal View History

2024-05-26 14:27:05 +02:00
### [CVE-2009-4146](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4146)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### Description
The _rtld function in the Run-Time Link-Editor (rtld) in libexec/rtld-elf/rtld.c in FreeBSD 7.1, 7.2, and 8.0 does not clear the LD_PRELOAD environment variable, which allows local users to gain privileges by executing a setuid or setguid program with a modified LD_PRELOAD variable containing an untrusted search path that points to a Trojan horse library, a different vector than CVE-2009-4147.
### POC
#### Reference
- http://packetstormsecurity.com/files/152997/FreeBSD-rtld-execl-Privilege-Escalation.html
#### Github
- https://github.com/Snoopy-Sec/Localroot-ALL-CVE