Cisco Multiple Routers DNIAPI Directory Traversal Arbitrary File Creation Vulnerability
The web service on Cisco RV16x and RV26x routers does not properly validate a user-supplied path in the filename parameter, allowing an unauthenticated network-adjacent attacker to create arbitrary files as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to create arbitrary files on affected installations of Cisco RV16x and RV26x routers. Authentication is not required to exploit this vulnerability.
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
The web service fails to validate the filename parameter before using it in file operations, allowing path traversal.
Impact
An unauthenticated attacker on the same network could create arbitrary files as root, potentially leading to full compromise of the router.
What the attacker needed
Network-adjacent access to the router; no authentication required
The fix
Cisco has 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 is a directory traversal flaw in the web interface of some Cisco routers. An attacker on the same network can send a crafted request that makes the router write files to unintended locations, even though no login is needed. Because the files are created with root privileges, the attacker could potentially take full control of the device.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.