(Pwn2Own) Cisco RV340 NGINX sessionid Directory Traversal Authentication Bypass Vulnerability
The NGINX web server on Cisco RV340 routers does not properly validate the sessionid cookie before using it in file operations, allowing a network-adjacent attacker to bypass authentication.
This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of Cisco RV340 routers. Authentication is not required to exploit this vulnerability.
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 uses the sessionid cookie value directly in a file path without validating or sanitising it, enabling directory traversal.
Impact
A network-adjacent attacker could bypass authentication on the router, potentially gaining unauthorised access to its management interface.
What the attacker needed
Network-adjacent access to the router
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 how a router's web server handles a cookie called sessionid. The server uses the cookie's value to find a file, but it doesn't check that the value is safe, so an attacker on the same network can trick the server into using a different file and skip the login step.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.