CVE-2006-5178 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 f...
MediumCVSS 6.2
EPSS 0.66%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | <= 5.1.6 | No fix listed |
| PHP | = 4.0 | No fix listed |
| PHP | = 4.0.1 | No fix listed |
| PHP | = 4.0.1-patch1 | No fix listed |
| PHP | = 4.0.1-patch2 | No fix listed |
| PHP | = 4.0.2 | No fix listed |
| PHP | = 4.0.3-patch1 | No fix listed |
| PHP | = 4.0.4 | No fix listed |
| PHP | = 4.0.5 | No fix listed |
| PHP | = 4.0.6 | No fix listed |
| PHP | = 4.0.7 | No fix listed |
| PHP | = 4.0.7-rc1 | No fix listed |
| PHP | = 4.0.7-rc2 | No fix listed |
| PHP | = 4.0.7-rc3 | No fix listed |
| PHP | = 4.1.0 | No fix listed |
| PHP | = 4.1.1 | No fix listed |
| PHP | = 4.1.2 | No fix listed |
| PHP | = 4.2 | No fix listed |
| PHP | = 4.2.0 | No fix listed |
| PHP | = 4.2.1 | No fix listed |
| PHP | = 4.2.2 | No fix listed |
| PHP | = 4.2.3 | No fix listed |
| PHP | = 4.3.0 | No fix listed |
| PHP | = 4.3.1 | No fix listed |
| PHP | = 4.3.2 | No fix listed |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | = 4.3.3 | No fix listed |
| PHP | = 4.3.4 | No fix listed |
| PHP | = 4.3.5 | No fix listed |
| PHP | = 4.3.6 | No fix listed |
| PHP | = 4.3.7 | No fix listed |
| PHP | = 4.3.8 | No fix listed |
| PHP | = 4.3.9 | No fix listed |
| PHP | = 4.3.10 | No fix listed |
| PHP | = 4.3.11 | No fix listed |
| PHP | = 4.4.0 | No fix listed |
| PHP | = 4.4.1 | No fix listed |
| PHP | = 4.4.2 | No fix listed |
| PHP | = 4.4.3 | No fix listed |
| PHP | = 4.4.4 | No fix listed |
| PHP | = 5.0-rc1 | No fix listed |
| PHP | = 5.0-rc2 | No fix listed |
| PHP | = 5.0-rc3 | No fix listed |
| PHP | = 5.0.0 | No fix listed |
| PHP | = 5.0.1 | No fix listed |
| PHP | = 5.0.2 | No fix listed |
| PHP | = 5.0.3 | No fix listed |
| PHP | = 5.0.4 | No fix listed |
| PHP | = 5.0.5 | No fix listed |
| PHP | = 5.1.0 | No fix listed |
| PHP | = 5.1.1 | No fix listed |
| PHP | = 5.1.2 | No fix listed |
| PHP | = 5.1.3 | No fix listed |
| PHP | = 5.1.4 | No fix listed |
| PHP | = 5.1.5 | No fix listed |
References
- 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability exploit mailing-list
- 22235 exploit third-party-advisory vendor-advisory
- 22424 third-party-advisory
- 1692 third-party-advisory
- 1016977 exploit vdb-entry
- www.hardened-php.net exploit vendor-advisory
- MDKSA-2006:185 vendor-advisory
- www.neosecurityteam.net
- 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability mailing-list
- 20061009 PHP open_basedir with symlink() function Race Condition PoC exploit mailing-list
- OpenPKG-SA-2006.023 vendor-advisory
- 20326 exploit vdb-entry
- TLSA-2006-38 vendor-advisory
- ADV-2006-3901 vdb-entry
- php-openbasedir-security-bypass(29340) vdb-entry