CVE Vulnerabilities

CVE-2013-6402

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

Published: Jan 05, 2014 | Modified: Mar 06, 2014
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:P/A:N
RedHat/V2
1.9 LOW
AV:L/AC:M/Au:N/C:N/I:P/A:N
RedHat/V3
Ubuntu
MEDIUM

base/pkit.py in HP Linux Imaging and Printing (HPLIP) through 3.13.11 allows local users to overwrite arbitrary files via a symlink attack on the /tmp/hp-pkservice.log temporary file.

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
Linux_imaging_and_printing_project Hp * 3.13.11 (including)
Linux_imaging_and_printing_project Hp 3.9.2 (including) 3.9.2 (including)
Linux_imaging_and_printing_project Hp 3.9.4 (including) 3.9.4 (including)
Linux_imaging_and_printing_project Hp 3.9.4-b (including) 3.9.4-b (including)
Linux_imaging_and_printing_project Hp 3.9.4b (including) 3.9.4b (including)
Linux_imaging_and_printing_project Hp 3.9.6 (including) 3.9.6 (including)
Linux_imaging_and_printing_project Hp 3.9.8 (including) 3.9.8 (including)
Linux_imaging_and_printing_project Hp 3.9.10 (including) 3.9.10 (including)
Linux_imaging_and_printing_project Hp 3.9.12 (including) 3.9.12 (including)
Linux_imaging_and_printing_project Hp 3.10.2 (including) 3.10.2 (including)
Linux_imaging_and_printing_project Hp 3.10.5 (including) 3.10.5 (including)
Linux_imaging_and_printing_project Hp 3.10.6 (including) 3.10.6 (including)
Linux_imaging_and_printing_project Hp 3.10.9 (including) 3.10.9 (including)
Linux_imaging_and_printing_project Hp 3.11.1 (including) 3.11.1 (including)
Linux_imaging_and_printing_project Hp 3.11.3 (including) 3.11.3 (including)
Linux_imaging_and_printing_project Hp 3.11.3-a (including) 3.11.3-a (including)
Linux_imaging_and_printing_project Hp 3.11.3a (including) 3.11.3a (including)
Linux_imaging_and_printing_project Hp 3.11.5 (including) 3.11.5 (including)
Linux_imaging_and_printing_project Hp 3.11.7 (including) 3.11.7 (including)
Linux_imaging_and_printing_project Hp 3.11.10 (including) 3.11.10 (including)
Linux_imaging_and_printing_project Hp 3.11.12 (including) 3.11.12 (including)
Linux_imaging_and_printing_project Hp 3.12.2 (including) 3.12.2 (including)
Linux_imaging_and_printing_project Hp 3.12.4 (including) 3.12.4 (including)
Linux_imaging_and_printing_project Hp 3.12.6 (including) 3.12.6 (including)
Linux_imaging_and_printing_project Hp 3.12.9 (including) 3.12.9 (including)
Linux_imaging_and_printing_project Hp 3.12.10 (including) 3.12.10 (including)
Linux_imaging_and_printing_project Hp 3.12.10-a (including) 3.12.10-a (including)
Linux_imaging_and_printing_project Hp 3.12.11 (including) 3.12.11 (including)
Linux_imaging_and_printing_project Hp 3.13.2 (including) 3.13.2 (including)
Linux_imaging_and_printing_project Hp 3.13.3 (including) 3.13.3 (including)
Linux_imaging_and_printing_project Hp 3.13.4 (including) 3.13.4 (including)
Linux_imaging_and_printing_project Hp 3.13.5 (including) 3.13.5 (including)
Linux_imaging_and_printing_project Hp 3.13.6 (including) 3.13.6 (including)
Linux_imaging_and_printing_project Hp 3.13.7 (including) 3.13.7 (including)
Linux_imaging_and_printing_project Hp 3.13.8 (including) 3.13.8 (including)
Linux_imaging_and_printing_project Hp 3.13.9 (including) 3.13.9 (including)
Linux_imaging_and_printing_project Hp 3.13.10 (including) 3.13.10 (including)
Hplip Ubuntu lucid *
Hplip Ubuntu precise *
Hplip Ubuntu quantal *
Hplip Ubuntu raring *
Hplip Ubuntu saucy *
Hplip Ubuntu upstream *

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