Skip to content
XSS Write-up Advanced

Cisco Prime 3.9.1 - RCE

Cisco Prime 3.9.1 fails to sanitise SNMP sysName data, leading to stored XSS, and also has an unrestricted file upload with path traversal. An attacker could chain these to upload and execute a JSP reverse shell, achieving remote code execution.

f20.be

Published on f20.be

This report documents the vulnerabilities we found in Cisco Prime, version 3.9.1. Each of these vulnerabilities is not critical, but by chaining them together we managed to achieve remote code execution on the Cisco Prime appliance.

The author, on f20.be

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application does not properly validate or sanitise SNMP sysName input and performs file upload checks only on the client side, while also allowing path traversal in the upload function.

Impact

An attacker could execute arbitrary code on the Cisco Prime appliance, leading to full compromise.

What the attacker needed

Attacker controls an SNMP device on the network; administrator runs SNMP discovery; administrator views discovery results

The fix

The vulnerabilities were fixed by Cisco, as indicated by the security advisory link.

How it was found

  1. Set up a malicious SNMP device with a crafted sysName containing an XSS payload.
  2. Run an SNMP discovery from Cisco Prime to scan the subnet where the malicious device is located.
  3. The XSS payload is stored and executes when the administrator views the discovery results.
  4. The XSS loads an external JavaScript that steals the session ID and CSRF token.
  5. The JavaScript uploads a JSP reverse shell using a path traversal in the file upload function.
  6. The JavaScript then requests the uploaded JSP to execute the reverse shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes several security holes in Cisco Prime, a network management tool. One hole lets an attacker inject malicious JavaScript that runs when an administrator views a device name from an SNMP scan. Another hole lets an attacker upload a harmful file to any folder on the server. By combining them, the attacker can run commands on the server.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.