| عنوان | D-Link DIR-X1860 4.5.2 OS Command Injection |
|---|
| الوصف | 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. |
|---|
| المصدر | ⚠️ https://github.com/nenghun/IoT/blob/main/D-Link%20DIR%20X1860/D-Link%20DIR-X1860%204.5.2%20rce.md |
|---|
| المستخدم | nenghun (UID 102476) |
|---|
| ارسال | 24/10/2026 08:01 PM (1 شهر منذ) |
|---|
| الاعتدال | 24/11/2026 09:36 AM (1 month later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 442751 [D-Link DIR-X1860 4.5.2 /usr/sbin/anweb تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|