Vulnerabilities > CVE-2013-5486 - OS Command Injection vulnerability in Cisco Prime Data Center Network Manager
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Directory traversal vulnerability in processImageSave.jsp in DCNM-SAN Server in Cisco Prime Data Center Network Manager (DCNM) before 6.2(1) allows remote attackers to write arbitrary files via the chartid parameter, aka Bug IDs CSCue77035 and CSCue77036. NOTE: this can be leveraged to execute arbitrary commands by using the JBoss autodeploy functionality.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
- Command Delimiters An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
- Exploiting Multiple Input Interpretation Layers An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
- Argument Injection An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
- OS Command Injection In this type of an attack, an adversary injects operating system commands into existing application functions. An application that uses untrusted input to build command strings is vulnerable. An adversary can leverage OS command injection in an application to elevate privileges, execute arbitrary commands and compromise the underlying operating system.
Exploit-Db
description | Cisco Prime Data Center Network Manager - Arbitrary File Upload. CVE-2013-5486. Remote exploit for java platform |
file | exploits/java/remote/30008.rb |
id | EDB-ID:30008 |
last seen | 2016-02-03 |
modified | 2013-12-03 |
platform | java |
port | |
published | 2013-12-03 |
reporter | metasploit |
source | https://www.exploit-db.com/download/30008/ |
title | Cisco Prime Data Center Network Manager - Arbitrary File Upload |
type | remote |
Metasploit
description | This module exploits a code execution flaw in Cisco Data Center Network Manager. The vulnerability exists in processImageSave.jsp, which can be abused through a directory traversal and a null byte injection to upload arbitrary files. The autodeploy JBoss application server feature is used to achieve remote code execution. This module has been tested successfully on Cisco Prime Data Center Network Manager 6.1(2) on Windows 2008 R2 (64 bits). |
id | MSF:EXPLOIT/MULTI/HTTP/CISCO_DCNM_UPLOAD |
last seen | 2020-06-07 |
modified | 2017-07-24 |
published | 2013-11-30 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/cisco_dcnm_upload.rb |
title | Cisco Prime Data Center Network Manager Arbitrary File Upload |
Nessus
NASL family CISCO NASL id CISCO_PRIME_DCNM_6_2_1_LOCAL.NASL description According to its self-reported version number, the version of Cisco Prime Data Center Network Manager (DCNM) installed on the remote host is affected by multiple vulnerabilities : - Multiple remote command execution vulnerabilities exist in the DCNM-SAN Server component. (CVE-2013-5486) - An information disclosure vulnerability exists in the DCMN-SAN Server component that could allow attackers to view arbitrary files on the system. (CVE-2013-5487) - A XML external entity injection vulnerability exists that could allow an attacker to access arbitrary text files on the system with root privileges. (CVE-2013-5490) last seen 2020-06-01 modified 2020-06-02 plugin id 70167 published 2013-09-27 reporter This script is Copyright (C) 2013-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/70167 title Cisco Prime Data Center Network Manager < 6.2(1) Multiple Vulnerabilities (credentialed check) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(70167); script_version("1.13"); script_cvs_date("Date: 2018/11/15 20:50:20"); script_cve_id("CVE-2013-5486", "CVE-2013-5487", "CVE-2013-5490"); script_bugtraq_id(62483, 62484, 62485); script_xref(name:"CERT", value:"632656"); script_xref(name:"CISCO-BUG-ID", value:"CSCud80148"); script_xref(name:"CISCO-BUG-ID", value:"CSCue77029"); script_xref(name:"CISCO-BUG-ID", value:"CSCue77035"); script_xref(name:"CISCO-BUG-ID", value:"CSCue77036"); script_xref(name:"CISCO-SA", value:"cisco-sa-20130918-dcnm"); script_name(english:"Cisco Prime Data Center Network Manager < 6.2(1) Multiple Vulnerabilities (credentialed check)"); script_summary(english:"Checks DCNM version number"); script_set_attribute(attribute:"synopsis", value: "A network management system installed on the remote host is affected by multiple vulnerabilities."); script_set_attribute(attribute:"description", value: "According to its self-reported version number, the version of Cisco Prime Data Center Network Manager (DCNM) installed on the remote host is affected by multiple vulnerabilities : - Multiple remote command execution vulnerabilities exist in the DCNM-SAN Server component. (CVE-2013-5486) - An information disclosure vulnerability exists in the DCMN-SAN Server component that could allow attackers to view arbitrary files on the system. (CVE-2013-5487) - A XML external entity injection vulnerability exists that could allow an attacker to access arbitrary text files on the system with root privileges. (CVE-2013-5490)"); script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-254/"); script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-255/"); script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-256/"); # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20130918-dcnm script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?68f3586d"); script_set_attribute(attribute:"solution", value:"Upgrade to Cisco Prime Data Center Network Manager 6.2(1) or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"metasploit_name", value:'Cisco Prime Data Center Network Manager Arbitrary File Upload'); script_set_attribute(attribute:"exploit_framework_metasploit", value:"true"); script_set_attribute(attribute:"vuln_publication_date", value:"2013/09/18"); script_set_attribute(attribute:"patch_publication_date", value:"2013/09/18"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/09/27"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:prime_data_center_network_manager"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"CISCO"); script_copyright(english:"This script is Copyright (C) 2013-2018 and is owned by Tenable, Inc. or an Affiliate thereof."); script_dependencies("cisco_prime_dcnm_installed_win.nasl", "cisco_prime_dcnm_installed_linux.nasl"); script_require_ports("installed_sw/Cisco Prime DCNM"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("misc_func.inc"); include("install_func.inc"); appname = "Cisco Prime DCNM"; get_install_count(app_name:appname, exit_if_zero:TRUE); install = get_single_install(app_name:appname, exit_if_unknown_ver:TRUE); ver = install['version']; path = install['path']; display_ver = install['display_version']; fix = '6.2.1.0'; display_fix = '6.2(1)'; if (ver_compare(ver:ver, fix:fix, strict:FALSE) >= 0) audit(AUDIT_INST_VER_NOT_VULN, appname, display_ver); # Could be Windows or *nix port = get_kb_item('SMB/transport'); if (!port) port = 0; if (report_verbosity > 0) { if (isnull(display_ver)) display_ver = ver; report = '\n Path : ' + path + '\n Installed version : ' + display_ver + '\n Fixed version : ' + display_fix + '\n'; security_hole(port:port, extra:report); } else security_hole(port);
NASL family CISCO NASL id CISCO_PRIME_DCNM_6_2_1.NASL description According to its self-reported version number, the version of Cisco Prime Data Center Network Manager (DCNM) installed on the remote host is affected by multiple vulnerabilities : - Multiple remote command execution vulnerabilities exist in the DCNM-SAN Server component. (CVE-2013-5486) - An information disclosure vulnerability exists in the DCMN-SAN Server component that could allow an attacker to view arbitrary files on the system. (CVE-2013-5487) - A XML external entity injection vulnerability exists that could allow an attacker to access arbitrary text files on the system with root privileges. (CVE-2013-5490) This plugin determines if DCNM is vulnerable by checking the version number displayed in the web interface. The web interface is not available in older versions of DCNM. last seen 2020-06-01 modified 2020-06-02 plugin id 70166 published 2013-09-27 reporter This script is Copyright (C) 2013-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/70166 title Cisco Prime Data Center Network Manager < 6.2(1) Multiple Vulnerabilities (uncredentialed check)
Packetstorm
data source | https://packetstormsecurity.com/files/download/124245/cisco_dcnm_upload.rb.txt |
id | PACKETSTORM:124245 |
last seen | 2016-12-05 |
published | 2013-12-03 |
reporter | rgod |
source | https://packetstormsecurity.com/files/124245/Cisco-Prime-Data-Center-Network-Manager-Arbitrary-File-Upload.html |
title | Cisco Prime Data Center Network Manager Arbitrary File Upload |