CVE-2006-5178

medium

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.

References

https://exchange.xforce.ibmcloud.com/vulnerabilities/29340

http://www.vupen.com/english/advisories/2006/3901

http://www.turbolinux.com/security/2006/TLSA-2006-38.txt

http://www.securityfocus.com/archive/1/448953/100/0/threaded

http://www.securityfocus.com/archive/1/448020/100/0/threaded

http://www.securityfocus.com/archive/1/447649/100/0/threaded

http://www.neosecurityteam.net/index.php?action=advisories&id=26

http://www.mandriva.com/security/advisories?name=MDKSA-2006:185

http://securityreason.com/securityalert/1692

http://secunia.com/advisories/22424

Details

Source: Mitre, NVD

Published: 2006-10-10

Updated: 2018-10-30

Risk Information

CVSS v2

Base Score: 6.2

Vector: CVSS2#AV:L/AC:H/Au:N/C:C/I:C/A:C

Severity: Medium

CVSS v3

Base Score: 4.7

Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N

Severity: Medium