Skip to content
Path traversal Write-up Advanced

Panic! at the Cisco :: Unauthenticated Remote Code Execution in Cisco Prime Infrastructure

An unauthenticated attacker could exploit a directory traversal vulnerability in the UploadServlet of Cisco Prime Infrastructure's Health Monitor application to write arbitrary files and achieve remote code execution as the prime user. The vulnerability required the high availability feature to be configured and connected.

srcincite.io

Published on srcincite.io

Not all directory traversals are the same. The impact can range depending on what the traversal is used for and how much user interaction is needed.

The author, on srcincite.io

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

The TarArchive class extracted archive entries without validating that the destination path stayed within the intended directory, allowing directory traversal.

What the attacker needed

High availability configured and connected; Network access to the UploadServlet endpoint

How it was found

  1. Set up Cisco Prime Infrastructure with high availability configured and connected.
  2. Send a POST request to /servlet/UploadServlet with headers including Destination-Dir, Primary-IP, Filecount, Filename, Filesize, and Compressed-Archive.
  3. Include a tar archive in the request body that contains a file with a path traversal sequence.
  4. The server extracts the archive, writing the file outside the intended directory.
  5. The written file can be a script that executes commands, leading to remote code execution.

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 a flaw in a network management product where a file upload feature did not check where files were being saved. An attacker could send a specially crafted archive that, when unpacked, would place files outside the intended folder, including a malicious script that could be executed by the server. This allowed the attacker to run commands on the server without needing to log in.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.