Skip to content
RCE Advisory Advanced CVE-2022-20703CVE-2022-20704

(Pwn2Own) Cisco RV340 Firmware Update Improper Certificate Validation Remote Code Execution Vulnerability

The router's firmware update process downloads firmware over HTTPS but does not properly validate the server's certificate. A network-adjacent attacker could exploit this to execute arbitrary code as root when an administrator performs a firmware update.

Gaurav Baruah Follow

Originally disclosed on Zero Day Initiative

High 7.1 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Cisco RV340 routers. User interaction is required to exploit this vulnerability in that an administrator must perform a firmware update on the device.

Gaurav Baruah, 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 firmware download client did not properly validate the HTTPS server certificate, allowing a man-in-the-middle to supply a malicious firmware image.

Impact

A network-adjacent attacker could execute arbitrary code as root, but only if an administrator performs a firmware update.

What the attacker needed

Network-adjacent attacker; administrator performs firmware update

The fix

Cisco issued an update to correct the 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.

When a device downloads an update over HTTPS, it should check that the server's certificate is genuine. Here, the router did not check properly, so someone on the same network could pretend to be the update server and send malicious firmware. That firmware would then run with the highest privileges on the device.

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 Gaurav Baruah

View all

1 more disclosed report, 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.

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.