Skip to content
RCE Write-up Intermediate

Cisco RV320 Command Injection

The certificate generator in the Cisco RV320 router's web interface was still vulnerable to command injection after an earlier patch, because the new filters for single quotes could be bypassed. An attacker with administrative access could execute arbitrary operating system commands on the device.

redteam-pentesting.de

Published on redteam-pentesting.de

newerback to overviewolder

RedTeam Pentesting GmbH, on redteam-pentesting.de

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

Likely the certificate generator passed user input to a shell command without adequate sanitisation, and the added filters for single quotes could be evaded with crafted input.

Impact

Attackers with administrative access to the web interface could execute arbitrary operating system commands on the device; because valid credentials are required, the risk is rated medium.

What the attacker needed

Administrative access to the web interface; valid session cookie

The fix

Install firmware version 1.4.2.22 or later, which was released by the vendor.

How it was found

  1. Obtain a valid session cookie for the router's web interface.
  2. Send an HTTP POST request to the certificate generator endpoint with a crafted common name containing a command substitution.
  3. Observe the injected command's effect, such as incoming ICMP echo requests on the attacker's system.

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.

A router's web interface lets administrators generate certificates. The router took the certificate's common name and passed it to a system command without properly cleaning it. By crafting the name in a special way, an attacker who is already logged in as admin could make the router run their own commands.

What is RCE?

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

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.