HP JetAdmin symlink Vulnerability

BID:157

Info

HP JetAdmin symlink Vulnerability

Bugtraq ID: 157
Class: Access Validation Error
CVE:
Remote: Yes
Local: Yes
Published: Jul 15 1998 12:00AM
Updated: Jul 15 1998 12:00AM
Credit: This vulnerability was posted to Bugtraq by emffmmadffsdf <[email protected]> on July 15, 1998
Vulnerable: HP JetAdmin 1.0.9 Rev. D
Not Vulnerable: HP JetAdmin 4.1.2

Discussion

HP JetAdmin symlink Vulnerability

A vulnerability exists in HP's JetAdmin Rev. D.01.09 software. Due to its failure to check if it is following a symbolic link, it is possible for an attacker to create a link from /tmp/jetadmin.log to anywhere on the filesystem, with permissions for reading and writing by everyone on the system. This can be used to gain root access.

The problem lies in the checking and creation of the log file. The following snippit is from /opt/hpnp/admin/jetadmin.
----
LOG=$TMP/jetadmin.log

if [ ! -f "$LOG" ]
then
touch $LOG
chmod 666 $LOG
fi
----

If the log file does not exist, the jetadmin script will create it, and change its permissions to 666. It does not check if the file is a symbolic link.

Exploit / POC

HP JetAdmin symlink Vulnerability

ln -sf /.rhosts /tmp/jetadmin.log

Solution / Fix

HP JetAdmin symlink Vulnerability

Solution:
HP recommends upgrading to a later version of the jetadmin software, available at http://www.hp.com/go/support, in the Network Printing section.

Posts to Bugtraq suggested changing line 17 to set more restrictive permissions. However, the potential still exists for a powerful denial of service should this be the option selected.

References

HP JetAdmin symlink Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report