CVE Vulnerabilities

CVE-2011-0754

Improper Link Resolution Before File Access ('Link Following')

Published: Feb 02, 2011 | Modified: Oct 30, 2018
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu

The SplFileInfo::getType function in the Standard PHP Library (SPL) extension in PHP before 5.3.4 on Windows does not properly detect symbolic links, which might make it easier for local users to conduct symlink attacks by leveraging cross-platform differences in the stat structure, related to lack of a FILE_ATTRIBUTE_REPARSE_POINT check.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Php Php * 5.3.3
Php Php 1.0 1.0
Php Php 2.0 2.0
Php Php 2.0b10 2.0b10
Php Php 3.0 3.0
Php Php 3.0.1 3.0.1
Php Php 3.0.2 3.0.2
Php Php 3.0.3 3.0.3
Php Php 3.0.4 3.0.4
Php Php 3.0.5 3.0.5
Php Php 3.0.6 3.0.6
Php Php 3.0.7 3.0.7
Php Php 3.0.8 3.0.8
Php Php 3.0.9 3.0.9
Php Php 3.0.10 3.0.10
Php Php 3.0.11 3.0.11
Php Php 3.0.12 3.0.12
Php Php 3.0.13 3.0.13
Php Php 3.0.14 3.0.14
Php Php 3.0.15 3.0.15
Php Php 3.0.16 3.0.16
Php Php 3.0.17 3.0.17
Php Php 3.0.18 3.0.18
Php Php 4.0 4.0
Php Php 4.0 4.0
Php Php 4.0 4.0
Php Php 4.0 4.0
Php Php 4.0 4.0
Php Php 4.0 4.0
Php Php 4.0.0 4.0.0
Php Php 4.0.1 4.0.1
Php Php 4.0.2 4.0.2
Php Php 4.0.3 4.0.3
Php Php 4.0.4 4.0.4
Php Php 4.0.5 4.0.5
Php Php 4.0.6 4.0.6
Php Php 4.0.7 4.0.7
Php Php 4.1.0 4.1.0
Php Php 4.1.1 4.1.1
Php Php 4.1.2 4.1.2
Php Php 4.2.0 4.2.0
Php Php 4.2.1 4.2.1
Php Php 4.2.2 4.2.2
Php Php 4.2.3 4.2.3
Php Php 4.3.0 4.3.0
Php Php 4.3.1 4.3.1
Php Php 4.3.2 4.3.2
Php Php 4.3.3 4.3.3
Php Php 4.3.4 4.3.4
Php Php 4.3.5 4.3.5
Php Php 4.3.6 4.3.6
Php Php 4.3.7 4.3.7
Php Php 4.3.8 4.3.8
Php Php 4.3.9 4.3.9
Php Php 4.3.10 4.3.10
Php Php 4.3.11 4.3.11
Php Php 4.4.0 4.4.0
Php Php 4.4.1 4.4.1
Php Php 4.4.2 4.4.2
Php Php 4.4.3 4.4.3
Php Php 4.4.4 4.4.4
Php Php 4.4.5 4.4.5
Php Php 4.4.6 4.4.6
Php Php 4.4.7 4.4.7
Php Php 4.4.8 4.4.8
Php Php 4.4.9 4.4.9
Php Php 5.3.0 5.3.0
Php Php 5.3.1 5.3.1
Php Php 5.3.2 5.3.2

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References