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
RedHat/V3
Ubuntu

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.9.6 3.9.6
Linux_imaging_and_printing_project Hp 3.10.6 3.10.6
Linux_imaging_and_printing_project Hp 3.11.1 3.11.1
Linux_imaging_and_printing_project Hp 3.11.3a 3.11.3a
Linux_imaging_and_printing_project Hp 3.9.4b 3.9.4b
Linux_imaging_and_printing_project Hp 3.9.12 3.9.12
Linux_imaging_and_printing_project Hp 3.9.4 3.9.4
Linux_imaging_and_printing_project Hp 3.9.10 3.9.10
Linux_imaging_and_printing_project Hp 3.10.9 3.10.9
Linux_imaging_and_printing_project Hp 3.9.8 3.9.8
Linux_imaging_and_printing_project Hp 3.10.5 3.10.5
Linux_imaging_and_printing_project Hp 3.11.3 3.11.3
Linux_imaging_and_printing_project Hp 3.9.2 3.9.2
Linux_imaging_and_printing_project Hp 3.10.2 3.10.2
Linux_imaging_and_printing_project Hp * 3.11.5
Linux_imaging_and_printing_project Hp 3.11.7 3.11.7

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