(CVE-20221-35401) Prolink PRC2402M login.cgi sys_login Un-authenticated Command Injection Vulnerability
The login.cgi script on the Prolink PRC2402M router passes user input to popen without validation, allowing an unauthenticated attacker to run arbitrary commands as root. No authentication is needed to exploit the flaw.
starlabs.sg
Published on starlabs.sg
This vulnerability is present as there are no checks on user input taken by login.cgi, which is passed to popen, allowing an attacker to execute arbitrary code in the context of the root user on affected installations of the Prolink PRC2402M router.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
User-supplied input to login.cgi is passed to popen without any validation or sanitisation.
Impact
An unauthenticated attacker could execute arbitrary commands as the root user on the affected router.
What the attacker needed
Network access to the router's web interface; no authentication required
How it was found
- Visit the vulnerable login.cgi script on the router's web interface.
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 write-up has not been written yet. The Original tab links to the source.
A router's web login page takes input from whoever visits it and hands that input to a system command without checking it. Because the input is not cleaned, someone can sneak extra commands into it and the router runs them with the highest privileges. No password or login is required to try this.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.