| Title | TOTOLINK N300RH_V4 V6.1c.1353_B20190305 Command Injection |
|---|
| Description | A pre‑authentication OS command injection vulnerability exists in the `setWebWlanIdx` 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 `webWlanIdx`, 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/xyh4ck/iot_poc/blob/main/TOTOLINK/N300RHv4/01_setWebWlanIdx_RCE/README.md |
|---|
| User | xuanyu (UID 36103) |
|---|
| Submission | 02/18/2026 02:07 PM (2 months ago) |
|---|
| Moderation | 02/26/2026 09:33 PM (8 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 348052 [Totolink N300RH 6.1c.1353_B20190305 Web Management Interface /cgi-bin/cstecgi.cgi setWebWlanIdx webWlanIdx os command injection] |
|---|
| Points | 20 |
|---|