Skip to content
File upload Advisory Advanced CVE-2022-20705

(Pwn2Own) Cisco RV340 NGINX Improper Authentication Unrestricted File Upload Vulnerability

The NGINX web server on Cisco RV340 routers does not properly validate the Authorization request header, allowing an attacker to bypass authentication and upload arbitrary files. This lets a network-adjacent attacker create files as the www-data user.

Q. Kaiser Follow

Originally disclosed on Zero Day Initiative

Medium 6.5 View original

This vulnerability allows network-adjacent attackers to create arbitrary files on affected installations of Cisco RV340 routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

Q. Kaiser from IoT Inspector Research Lab, 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

Likely the NGINX configuration fails to properly validate the Authorization header, enabling authentication bypass and unrestricted file upload.

Impact

A network-adjacent attacker could bypass authentication and create arbitrary files as the www-data user, potentially leading to code execution.

What the attacker needed

Network-adjacent access; authentication bypass

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 flaw in a router's web server. The server checks a login header but does not do it correctly, so someone on the same network can trick it into accepting files they should not be able to upload. That could let them run their own code on the device.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Q. Kaiser

View all

3 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.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.