Skip to content
Path traversal Advisory Intermediate CVE-2021-1297

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.

T. Shiomitsu Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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.

T Shiomitsu, on the Zero Day Initiative

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.

More by T. Shiomitsu

View all

11 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.