(CVE-20221-35403) Prolink PRC2402M touchlist_sync.cgi main Un-authenticated Command Injection Vulnerability
The touchlist_sync.cgi script on the Prolink PRC2402M router passes user input to popen without any checks, so an unauthenticated attacker can run arbitrary commands as root. The router accepts GET requests to reach the vulnerable script.
starlabs.sg
Published on starlabs.sg
This vulnerability is present as there are no checks on user input taken by touchlistsync.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 input reaching touchlist_sync.cgi is passed to popen without validation or sanitisation.
Impact
An unauthenticated attacker could execute arbitrary code as the root user on affected routers.
What the attacker needed
Network access to the router's web interface; no authentication required
How it was found
- Reach the router's web interface.
- Send a GET request to the touchlist_sync.cgi script with crafted input.
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.
This router runs a small web program that takes input from whoever sends a request and hands it to a system command without cleaning it first. Because the program runs as the most powerful user on the device, anyone who can reach it can make the router run their own commands. No login is needed, so the attacker only has to send a crafted web request.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.