Skip to content
RCE Write-up Advanced

Advisory: Cisco Small Business RV Series Routers Web Filter Database Update Command Injection Vulnerability

The router's web filter update client fetched a database filename from a remote server and passed it into a shell command without sanitisation, allowing command injection. An attacker who can intercept the update traffic could execute arbitrary commands as root on the device.

Quentin Kaiser Follow

Published on onekey.com

Example H2

Quentin Kaiser (@QKaiser), on onekey.com

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 filename from the update response was inserted into a shell command via sprintf without validation, enabling command injection.

Impact

An attacker positioned on the network could achieve unauthenticated remote command execution as root, but only if they can intercept the update traffic and the update occurs (on boot or daily).

What the attacker needed

Attacker on same network (ARP spoofing); router performs update (boot or daily); factory reset to trigger on boot

The fix

Cisco fixed the issue by enforcing certificate validation, though the underlying command injection remains and could still be exploited via a compromised update server.

How it was found

  1. Set up a malicious server that responds to the update request with a crafted filename containing a command.
  2. Ensure the router requests the update, either on boot after a factory reset or during the daily check.
  3. Serve a valid database file so the checksum validation passes.
  4. The router executes the injected command, which can download and run a shell script.

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.

The router regularly downloads a list of website categories from a server. It took a file name from that server and used it directly in a system command. Because the name was not checked, an attacker who could pretend to be the server could make the router run any command.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Quentin Kaiser

View all

5 more disclosed reports, best first.

More from Cisco

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.