cve/2006/CVE-2006-5178.md

18 lines
928 B
Markdown
Raw Normal View History

2024-05-26 14:27:05 +02:00
### [CVE-2006-5178](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-5178)
![](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
Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink.
### POC
#### Reference
- http://securityreason.com/securityalert/1692
#### Github
- https://github.com/Whissi/realpath_turbo