ID CVE-2013-4325
Summary The check_permission_v1 function in base/pkit.py in HP Linux Imaging and Printing (HPLIP) through 3.13.9 does not properly use D-Bus for communication with a polkit authority, which allows local users to bypass intended access restrictions by leveraging a PolkitUnixProcess PolkitSubject race condition via a (1) setuid process or (2) pkexec process.
References
Vulnerable Configurations
  • HP Linux Imaging and Printing Project 3.13.4
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.4
  • HP Linux Imaging and Printing Project 3.13.5
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.5
  • HP Linux Imaging and Printing Project 3.13.6
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.6
  • HP Linux Imaging and Printing Project 3.13.7
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.7
  • HP Linux Imaging and Printing Project 3.13.8
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.8
  • HP Linux Imaging and Printing Project 3.13.9
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.9
  • HP Linux Imaging and Printing Project 1.0
    cpe:2.3:a:hp:linux_imaging_and_printing_project:1.0
  • HP Linux Imaging and Printing Project 2.0
    cpe:2.3:a:hp:linux_imaging_and_printing_project:2.0
  • HP Linux Imaging and Printing Project 2.7.10
    cpe:2.3:a:hp:linux_imaging_and_printing_project:2.7.10
  • HP Linux Imaging and Printing Project 3.10.2
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.10.2
  • HP Linux Imaging and Printing Project 3.10.5
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.10.5
  • HP Linux Imaging and Printing Project 3.10.6
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.10.6
  • HP Linux Imaging and Printing Project 3.10.9
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.10.9
  • HP Linux Imaging and Printing Project 3.11.1
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.11.1
  • HP Linux Imaging and Printing Project 3.11.10
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.11.10
  • HP Linux Imaging and Printing Project 3.11.3
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.11.3
  • HP Linux Imaging and Printing Project 3.11.3a
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.11.3a
  • HP Linux Imaging and Printing Project 3.11.5
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.11.5
  • HP Linux Imaging and Printing Project 3.11.7
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.11.7
  • HP Linux Imaging and Printing Project 3.12.10
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.10
  • HP Linux Imaging and Printing Project 3.12.10a
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.10:a
  • HP Linux Imaging and Printing Project 3.12.11
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.11
  • HP Linux Imaging and Printing Project 3.12.2
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.2
  • HP Linux Imaging and Printing Project 3.12.4
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.4
  • HP Linux Imaging and Printing Project 3.12.6
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.6
  • HP Linux Imaging and Printing Project 3.12.9
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.12.9
  • HP Linux Imaging and Printing Project 3.13.2
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.2
  • HP Linux Imaging and Printing Project 3.13.3
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.13.3
  • HP Linux Imaging and Printing Project 3.9.10
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.10
  • HP Linux Imaging and Printing Project 3.9.12
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.12
  • HP Linux Imaging and Printing Project 3.9.2
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.2
  • HP Linux Imaging and Printing Project 3.9.4
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.4
  • HP Linux Imaging and Printing Project 3.9.4b
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.4b
  • HP Linux Imaging and Printing Project 3.9.6
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.6
  • HP Linux Imaging and Printing Project 3.9.8
    cpe:2.3:a:hp:linux_imaging_and_printing_project:3.9.8
CVSS
Base: 6.9 (as of 23-09-2013 - 14:16)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
nessus via4
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-1956-1.NASL
    description It was discovered that HPLIP was using polkit in an unsafe manner. A local attacker could possibly use this issue to bypass intended polkit authorizations. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 69974
    published 2013-09-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=69974
    title Ubuntu 10.04 LTS / 12.04 LTS / 12.10 / 13.04 : hplip vulnerability (USN-1956-1)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2013-1274.NASL
    description Updated hplip packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The hplip packages contain the Hewlett-Packard Linux Imaging and Printing Project (HPLIP), which provides drivers for Hewlett-Packard printers and multi-function peripherals. HPLIP communicated with PolicyKit for authorization via a D-Bus API that is vulnerable to a race condition. This could lead to intended PolicyKit authorizations being bypassed. This update modifies HPLIP to communicate with PolicyKit via a different API that is not vulnerable to the race condition. (CVE-2013-4325) All users of hplip are advised to upgrade to these updated packages, which contain a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 70013
    published 2013-09-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70013
    title RHEL 6 : hplip (RHSA-2013:1274)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2013-243.NASL
    description Updated polkit packages fix security vulnerability : A race condition was found in the way the PolicyKit pkcheck utility checked process authorization when the process was specified by its process ID via the --process option. A local user could use this flaw to bypass intended PolicyKit authorizations and escalate their privileges (CVE-2013-4288). Note: Applications that invoke pkcheck with the --process option need to be modified to use the pid,pid-start-time,uid argument for that option, to allow pkcheck to check process authorization correctly. Because of the change in the PolicyKit API, hplip (CVE-2013-4325), rtkit (CVE-2013-4326), and systemd (CVE-2013-4327) packages have been updated to use a different API that is not affected by this PolicyKit vulnerability.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 70185
    published 2013-09-28
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70185
    title Mandriva Linux Security Advisory : polkit (MDVSA-2013:243)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_HPLIP-140116.NASL
    description hplip was updated to fix three security issues : - Some local file overwrite problems via predictable /tmp filenames were fixed. (CVE-2013-0200) - hplip used an insecure polkit DBUS API (polkit-process subject race condition) which could lead to local privilege escalation. (CVE-2013-4325) - hplip uses arbitrary file creation/overwrite (via hard-coded file name /tmp/hp-pkservice.log). (CVE-2013-6402)
    last seen 2019-02-21
    modified 2014-05-02
    plugin id 72277
    published 2014-02-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=72277
    title SuSE 11.2 / 11.3 Security Update : hplip (SAT Patch Numbers 8775 / 8777)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201406-27.NASL
    description The remote host is affected by the vulnerability described in GLSA-201406-27 (polkit, Spice-Gtk, systemd, HPLIP, libvirt: Privilege escalation) polkit has a race condition which potentially allows a process to change its UID/EUID via suid or pkexec before authentication is completed. Impact : A local attacker could start a suid or pkexec process through a polkit-enabled application, which could result in privilege escalation or bypass of polkit restrictions. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-12-05
    plugin id 76271
    published 2014-06-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=76271
    title GLSA-201406-27 : polkit, Spice-Gtk, systemd, HPLIP, libvirt: Privilege escalation
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20130919_HPLIP_ON_SL6_X.NASL
    description HPLIP communicated with PolicyKit for authorization via a D-Bus API that is vulnerable to a race condition. This could lead to intended PolicyKit authorizations being bypassed. This update modifies HPLIP to communicate with PolicyKit via a different API that is not vulnerable to the race condition. (CVE-2013-4325)
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 70014
    published 2013-09-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70014
    title Scientific Linux Security Update : hplip on SL6.x i386/x86_64
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2013-812.NASL
    description the following security issue was fixed for HPLIP 3.13.10: usage of an insecure polkit DBUS API (fix for bnc#836937 and CVE-2013-4325 that are related to CVE-2013-4288 and bnc#835827).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75183
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75183
    title openSUSE Security Update : hplip (openSUSE-SU-2013:1617-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2013-17112.NASL
    description This update brings in the latest upstream release and fixes a security issue with the way polkit is used for authentication. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-19
    plugin id 70504
    published 2013-10-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70504
    title Fedora 18 : hplip-3.13.9-2.fc18 (2013-17112)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2013-17171.NASL
    description This update brings in the latest upstream release and fixes a security issue with the way polkit is used for authentication. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-19
    plugin id 70356
    published 2013-10-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70356
    title Fedora 20 : hplip-3.13.9-2.fc20 (2013-17171)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2013-1274.NASL
    description Updated hplip packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The hplip packages contain the Hewlett-Packard Linux Imaging and Printing Project (HPLIP), which provides drivers for Hewlett-Packard printers and multi-function peripherals. HPLIP communicated with PolicyKit for authorization via a D-Bus API that is vulnerable to a race condition. This could lead to intended PolicyKit authorizations being bypassed. This update modifies HPLIP to communicate with PolicyKit via a different API that is not vulnerable to the race condition. (CVE-2013-4325) All users of hplip are advised to upgrade to these updated packages, which contain a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 70001
    published 2013-09-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70001
    title CentOS 6 : hplip (CESA-2013:1274)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2013-1274.NASL
    description From Red Hat Security Advisory 2013:1274 : Updated hplip packages that fix one security issue are now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The hplip packages contain the Hewlett-Packard Linux Imaging and Printing Project (HPLIP), which provides drivers for Hewlett-Packard printers and multi-function peripherals. HPLIP communicated with PolicyKit for authorization via a D-Bus API that is vulnerable to a race condition. This could lead to intended PolicyKit authorizations being bypassed. This update modifies HPLIP to communicate with PolicyKit via a different API that is not vulnerable to the race condition. (CVE-2013-4325) All users of hplip are advised to upgrade to these updated packages, which contain a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 70009
    published 2013-09-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70009
    title Oracle Linux 6 : hplip (ELSA-2013-1274)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2829.NASL
    description Multiple vulnerabilities have been found in the HP Linux Printing and Imaging System: Insecure temporary files, insufficient permission checks in PackageKit and the insecure hp-upgrade service has been disabled.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 71769
    published 2013-12-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=71769
    title Debian DSA-2829-1 : hplip - several vulnerabilities
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2013-17127.NASL
    description This update brings in the latest upstream release and fixes a security issue with the way polkit is used for authentication. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-19
    plugin id 70003
    published 2013-09-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70003
    title Fedora 19 : hplip-3.13.9-2.fc19 (2013-17127)
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2013-291-01.NASL
    description New hplip packages are available for Slackware 13.1, 13.37, 14.0, and -current to fix security issues.
    last seen 2018-09-01
    modified 2013-10-27
    plugin id 70500
    published 2013-10-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70500
    title Slackware 13.1 / 13.37 / 14.0 / current : hplip (SSA:2013-291-01)
redhat via4
advisories
bugzilla
id 1006674
title CVE-2013-4325 hplip: Insecure calling of polkit
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhsa:tst:20100842001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhsa:tst:20100842002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhsa:tst:20100842003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhsa:tst:20100842004
  • OR
    • AND
      • comment hpijs is earlier than 1:3.12.4-4.el6_4.1
        oval oval:com.redhat.rhsa:tst:20131274015
      • comment hpijs is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110154016
    • AND
      • comment hplip is earlier than 0:3.12.4-4.el6_4.1
        oval oval:com.redhat.rhsa:tst:20131274005
      • comment hplip is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110154006
    • AND
      • comment hplip-common is earlier than 0:3.12.4-4.el6_4.1
        oval oval:com.redhat.rhsa:tst:20131274013
      • comment hplip-common is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110154010
    • AND
      • comment hplip-gui is earlier than 0:3.12.4-4.el6_4.1
        oval oval:com.redhat.rhsa:tst:20131274011
      • comment hplip-gui is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110154014
    • AND
      • comment hplip-libs is earlier than 0:3.12.4-4.el6_4.1
        oval oval:com.redhat.rhsa:tst:20131274009
      • comment hplip-libs is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110154012
    • AND
      • comment libsane-hpaio is earlier than 0:3.12.4-4.el6_4.1
        oval oval:com.redhat.rhsa:tst:20131274007
      • comment libsane-hpaio is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20110154008
rhsa
id RHSA-2013:1274
released 2013-09-19
severity Important
title RHSA-2013:1274: hplip security update (Important)
rpms
  • hpijs-1:3.12.4-4.el6_4.1
  • hplip-0:3.12.4-4.el6_4.1
  • hplip-common-0:3.12.4-4.el6_4.1
  • hplip-gui-0:3.12.4-4.el6_4.1
  • hplip-libs-0:3.12.4-4.el6_4.1
  • libsane-hpaio-0:3.12.4-4.el6_4.1
refmap via4
confirm
debian DSA-2829
suse
  • openSUSE-SU-2013:1617
  • openSUSE-SU-2013:1620
ubuntu USN-1956-1
Last major update 13-01-2014 - 23:27
Published 23-09-2013 - 06:18
Back to Top