hplip arbitrary file creation/overwrite

2014.01.06
Credit: Sebastian
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-59


CVSS Base Score: 2.1/10
Impact Subscore: 2.9/10
Exploitability Subscore: 3.9/10
Exploit range: Local
Attack complexity: Low
Authentication: No required
Confidentiality impact: None
Integrity impact: Partial
Availability impact: None

hplip once again creates logfiles in /tmp, which allows local users to create/overwrite arbitrary files. Thats here in base/pkit.py class BackendService(PolicyKitService): INTERFACE_NAME = 'com.hp.hplip' SERVICE_NAME = 'com.hp.hplip' LOGFILE_NAME = '/tmp/hp-pkservice.log' [...] Best fix would be for hplip to use the standard syslog facility, relying on syslogd, rather than creating logfiles in /tmp.

References:

https://bugzilla.novell.com/show_bug.cgi?id=852368


Vote for this issue:
50%
50%

Comment it here.

Copyright 2025, cxsecurity.com

 

Back to Top