Skip to content
Path traversal Advisory Advanced CVE-2022-20705CVE-2022-20707

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

Bien Pham Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of Cisco RV340 routers. Authentication is not required to exploit this vulnerability.

Bien Pham (@bienpnn) from Team Orca of Sea Security (security.sea.com), 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 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.

More by Bien Pham

View all

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

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.