module

Cisco Data Center Network Manager Unauthenticated Remote Code Execution

Disclosed
2019-06-26
Created
2019-09-02

Description

DCNM exposes a file upload servlet (FileUploadServlet) at /fm/fileUpload.
An authenticated user can abuse this servlet to upload a WAR to the Apache Tomcat webapps
directory and achieve remote code execution as root.
This module exploits two other vulnerabilities, CVE-2019-1619 for authentication bypass on
versions 10.4(2) and below, and CVE-2019-1622 (information disclosure) to obtain the correct
directory for the WAR file upload.
This module was tested on the DCNM Linux virtual appliance 10.4(2), 11.0(1) and 11.1(1), and should
work on a few versions below 10.4(2). Only version 11.0(1) requires authentication to exploit
(see References to understand why).

Author

Pedro Ribeiro pedrib@gmail.com

Platform

Java

Architectures

java

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/multi/http/cisco_dcnm_upload_2019
msf exploit(cisco_dcnm_upload_2019) > show targets
...targets...
msf exploit(cisco_dcnm_upload_2019) > set TARGET < target-id >
msf exploit(cisco_dcnm_upload_2019) > show options
...show and set options...
msf exploit(cisco_dcnm_upload_2019) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.