Title: Compaq Tru64 kdebugd Remote Arbitrary File Write Vulnerability
Severity: HIGH
Description:
Compaq's Tru64 (formerly known as 'Digital Unix') ships with a daemon that is vulnerable to a serious remote attack. The kdebugd daemon (which is started by inetd), accepts an initiation packet when a client connects to it. This packet contains two strings, "kdebugd" and an optional filename to where the session can be logged on the server running kdebugd. The file that is specified is then written to by kdebugd with root priviliges, with most of what is written being input from the client.
This can lead to a complete remote compromise of the system if appropriate files are written to properly. An example of this is writing to /etc/hosts.equiv, where "+ +" can be appended to the file which would then allow anybody from any host to log into the target system without password authentication (using r-services). Because some extra data is written to the target "log file" (that is not directly from the client..), more "syntax dependent" attacks such as adding an entry to /etc/passwd may not be feasible. Another thing to note is that the file must already exist on the system, so an attacker can't create "/.rhosts" if it doesn't exist.
This vulnerability can also be used to read any file on the filesystem. The attacker can use this vulnerability to write to /etc/remote and enter filenames which they wish to read, such as /etc/passwd. After doing this, they can re-connect to kdebugd and request the new entry that they previously wrote to /etc/remote. This will result in kdebugd opening the file, reading it and sending its contents to the client.
Affected Products:
- Digital (Compaq) TRU64/DIGITAL UNIX 4.0.0 D
- Digital (Compaq) TRU64/DIGITAL UNIX 4.0.0 e
- Digital (Compaq) TRU64/DIGITAL UNIX 4.0.0 f
- Digital (Compaq) TRU64/DIGITAL UNIX 5.0.0
References:
- Compaq: Tru64 Homepage
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.