| Title | D-Link DIR-X1860 4.5.2 OS Command Injection |
|---|
| Description | The D-Link DIR-X1860 wireless router (firmware 4.5.2) runs anweb (ELF32 MIPS, MD5 fb34cdc58de9a93313a3e709372f2a26) as root on port 80. Its WebSocket endpoint /websocket exposes a "sysutils" diagnostics feature (ping/traceroute). While most parameters are validated against a whitelist and rejected with "incorrect_params", the "-I" parameter of ping and the "-s" parameter of traceroute are NOT validated at all. Their values are concatenated verbatim into a command line executed via popen() (i.e. /bin/sh -c). A value containing shell metacharacters such as ";" therefore achieves arbitrary command execution as root.
The captured command line from the running device:
sh -c unset DEUTERON_SERVICE_ID; ping 127.0.0.1 -c 1 -I x;cat /proc/$$/cmdline>/tmp/cl2;:
Authentication: the sysutils action requires a DMSD-Access-Token cookie obtained via POST /login. On factory-default devices the credential is admin/admin (compiled into the binary), so authentication costs one public HTTP request. The injection is a separate defect: it still works after the administrator changes the password.
Verified 2026-10-17 by full-system emulation of the vendor firmware (QEMU qemu-system-mipsel + FirmAE kernel). Hardware confirmation recommended. |
|---|
| Source | ⚠️ https://github.com/nenghun/IoT/blob/main/D-Link%20DIR%20X1860/D-Link%20DIR-X1860%204.5.2%20rce.md |
|---|
| User | nenghun (UID 102476) |
|---|
| Submission | 10/24/2026 20:01 (1 month ago) |
|---|
| Moderation | 11/24/2026 09:36 (1 month later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 442751 [D-Link DIR-X1860 4.5.2 /usr/sbin/anweb os command injection] |
|---|
| Points | 20 |
|---|