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