(CVE-20221-35409) Prolink PRC2402M nightled.cgi SetNightLed Un-authenticated Command Injection Vulnerability
The nightled.cgi script on the Prolink PRC2402M router passes user input to a system command without any checks. An unauthenticated attacker could execute arbitrary code as the root user.
starlabs.sg
Published on starlabs.sg
This vulnerability is present as there are no checks on user input taken by nightled.cgi, which is passed to system, 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
The nightled.cgi script passes user-supplied input to a system command without validation or sanitisation.
Impact
An unauthenticated attacker could execute arbitrary code as root on the affected router.
What the attacker needed
Network access to the router's web interface
How it was found
- Send a GET request to the nightled.cgi script on the router.
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 runs a small web program that turns a light on or off. That program takes input from the web request and hands it straight to the operating system without checking it, so someone can sneak in extra commands. Because the program runs with the highest privileges, those extra commands run as the router's administrator.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.