Rapid7 Vulnerability & Exploit Database

Cisco Prime Infrastructure Unauthenticated Remote Code Execution

Back to Search

Cisco Prime Infrastructure Unauthenticated Remote Code Execution

Disclosed
10/04/2018
Created
03/19/2019

Description

Cisco Prime Infrastructure (CPI) contains two basic flaws that when exploited allow an unauthenticated attacker to achieve remote code execution. The first flaw is a file upload vulnerability that allows the attacker to upload and execute files as the Apache Tomcat user; the second is a privilege escalation to root by bypassing execution restrictions in a SUID binary. This module exploits these vulnerabilities to achieve unauthenticated remote code execution as root on the CPI default installation. This module has been tested with CPI 3.2.0.0.258 and 3.4.0.0.348. Earlier and later versions might also be affected, although 3.4.0.0.348 is the latest at the time of writing. The file upload vulnerability should have been fixed in versions 3.4.1 and 3.3.1 Update 02.

Author(s)

  • Pedro Ribeiro <pedrib@gmail.com>

Platform

Linux

Architectures

x86, x64

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/cisco_prime_inf_rce
msf exploit(cisco_prime_inf_rce) > show targets
    ...targets...
msf exploit(cisco_prime_inf_rce) > set TARGET < target-id >
msf exploit(cisco_prime_inf_rce) > show options
    ...show and set options...
msf exploit(cisco_prime_inf_rce) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;