Cisco Data Center Network Manager reportTemplateUploadPolicy Directory Traversal Remote Code Execution Vulnerability
The report template upload endpoint in Cisco Data Center Network Manager fails to validate the user-supplied fileName path before using it in file operations, allowing directory traversal. An attacker could combine this with other flaws to run code as SYSTEM, though authentication is required and the existing authentication mechanism can be bypassed.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Cisco Data Center Network Manager. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the fileName parameter is used to build a file path without checking for traversal sequences or confining the result to the intended upload directory.
Impact
An attacker could write files outside the intended directory and, chained with other vulnerabilities, execute code with SYSTEM privileges; authentication is required but the existing authentication mechanism can be bypassed.
What the attacker needed
Network access to the DCNM service; authentication, though it can be bypassed
The fix
Cisco issued an update to correct this vulnerability.
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 report has not been written yet. The Original tab links to the source.
This software lets administrators upload report templates, and it takes a file name from the user. The program never checks that the name stays inside the intended folder, so a crafted name can point somewhere else on the disk. Writing a file to a sensitive location can then let an attacker run their own code on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.