CVE Vulnerabilities

CVE-2011-2722

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

Published: May 25, 2012 | Modified: Feb 13, 2023
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
1.2 LOW
AV:L/AC:H/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
LOW

The send_data_to_stdout function in prnt/hpijs/hpcupsfax.cpp in HP Linux Imaging and Printing (HPLIP) 3.x before 3.11.10 allows local users to overwrite arbitrary files via a symlink attack on the /tmp/hpcupsfax.out 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.11.5 (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.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.3a (including) 3.11.3a (including)
Linux_imaging_and_printing_project Hp 3.11.7 (including) 3.11.7 (including)
Red Hat Enterprise Linux 5 RedHat hplip3-0:3.9.8-15.el5 *
Red Hat Enterprise Linux 6 RedHat hplip-0:3.12.4-4.el6 *
Hplip Ubuntu hardy *
Hplip Ubuntu lucid *
Hplip Ubuntu maverick *
Hplip Ubuntu natty *
Hplip Ubuntu oneiric *
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