Yifan YF325 httpd nvram.cgi authentication bypass vulnerability
An authentication bypass in the Yifan YF325 router's httpd nvram.cgi endpoint allows an unauthenticated attacker to upload a file that is parsed by nvram_restore, leading to arbitrary command execution and root access.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the httpd nvram.cgi functionality of Yifan YF325 v1.020221108. A specially crafted network request can lead to arbitrary command execution.
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 nvram.cgi endpoint processes uploaded files via nvram_restore without requiring authentication.
Impact
An unauthenticated attacker could execute arbitrary commands and change admin credentials to gain root access.
What the attacker needed
Network access to the router's web interface
The fix
The vendor released a patch on 2023-10-24.
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 router has a web interface that lets you upload a file to restore settings. Normally you must log in first, but the check is missing, so anyone on the network can send a file without logging in. That file is processed with high privileges, letting the attacker take full control of the device.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.