Submit #765681: Totolink N300RHv4 V6.1c.1353_B20190305 OS Command Injectioninfo

TitleTotolink N300RHv4 V6.1c.1353_B20190305 OS Command Injection
DescriptionA pre‑authentication OS command injection vulnerability exists in the `setWiFiWpsConfig`​ functionality exposed via the web management interface (`/cgi-bin/cstecgi.cgi`) of the TOTOLINK N300RH V4 router. The CGI handler retrieves user‑controlled input from the HTTP parameter `PIN`​, embeds it directly into a shell command string using `sprintf`​, and executes it via `CsteSystem()` without any sanitization or escaping. As a result, a remote attacker with network access to the web interface can inject arbitrary shell commands and execute them with root privileges on the device, without authentication. This allows full compromise of the router and, potentially, further compromise of the attached network.
Source⚠️ https://github.com/JXBbozaihuang/vuln-research/issues/2
User
 bozaihuang (UID 95768)
Submission02/23/2026 04:06 (6 months ago)
Moderation03/07/2026 09:40 (12 days later)
StatusAccepted
VulDB entry349642 [Totolink N300RH 6..1c.1353_B20190305 CGI /cgi-bin/cstecgi.cgi setWiFiWpsConfig os command injection]
Points20

Do you need the next level of professionalism?

Upgrade your account now!