通道:VulDB(
https://vuldb.com/?submit)
| Field | Value |
|---|---|
| Vendor | 360 (Qihoo 360) |
| Product | 360 Whole Home Router M5 |
| Component | /etc/init.d/mpt — start()(由 /etc/rc.d/S49mpt 开机自动执行) |
| Affected versions | M5 4.0.17.1566;同版本 M50(etc/init.d/mpt 与其逐字节一致,MD5 f06eb32bf0679bf4e212c2377d4b233a) |
| Firmware tested | M5-4.0.17.1566-rel-upgrade.bin(MD5 24666d75666d08032d1d1238239113c6) |
| Vulnerability type | CWE-798 Use of Hard-coded Credentials(另涉 CWE-306 缺失认证 / CWE-489 残留调试代码) |
| CVSS 3.1 | 8.7 AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(LAN 侧、未认证) |
| Requester | (报送时填写) |
| (报送时填写) | |
| Vendor notified | 已提交 360SRC(2026-09-25,漏洞名「360全屋路由 M5 出厂态未认证 telnet 登录导致远程代码执行」) |
| Discovery | Firmware reverse engineering + QEMU end-to-end reproduction (vendor rootfs) — no real device, no internet |
| Disclosure | Coordinated |
A vulnerability was found in Qihoo 360 Whole Home Router M5 firmware 4.0.17.1566. It has been rated as high. This vulnerability affects the function start of the file etc/init.d/mpt. The use of hard-coded credentials leads to an unauthenticated root shell (CWE-798). It is possible to launch the attack from the local network without authentication. This vulnerability may be used by attackers to obtain root privileges on the affected device.
In factory / uninitialized state (the hardware flag mptdone is empty), the boot
script /etc/init.d/mpt start() unconditionally performs two dangerous actions:
local mpt=`devinfo show mptdone`
if [ -z "$mpt" ] || [ 0 -eq $mpt ]; then
passwd root <<< 12345678 # ① root password forced to hard-coded "12345678"
service_start /usr/sbin/telnetd -l /bin/login.sh # ② telnetd started unconditionally on :23
/lib/fifo.sh &
fi/etc/rc.d/S49mptexists ⇒ runs automatically on boot, no user interaction required.- Firewall:
lanzoneinput ACCEPT,wanREJECT⇒ reachable from the LAN.
Any LAN-side attacker can then log in via telnet as root / 12345678 and obtain a
root shell without any credentials.
- Unauthenticated LAN-side root shell ⇒ arbitrary command execution, arbitrary file read/write, persistent backdoor installation.
- Verified end-to-end under QEMU with the vendor's own rootfs:
uid=0(root),/etc/shadowreadable; password verified as12345678by an independentopenssl passwd -1 -salt ... 12345678match. - Reproduced 3 independent times (salt differs each run, everything else byte-identical).
- Precondition: the device must be in the
mptdone-not-yet-written state (factory / factory-reset / initialization not completed). - The initial state of the
mptdonekey in the real device's factory partition was not verified (this test simulated it by "no MTD"). Real-device confirmation recommended. - This is a configuration/design flaw (hard-coded default credential + unconditionally enabled debug service), not a memory-corruption issue ⇒ do not claim "all devices are RCE".
- QEMU note: a generic
6.1.0-50-armmpkernel was used (the vendor kernel binds IPQ4019, for which QEMU has no machine); the rootfs is the vendor's original.
AV:A — reachable from the local network (LAN) only; WAN is REJECT. No authentication,
no user interaction. Compare: unlike the camera-series findings (which require a MITM /
cloud-push position), this one is directly reachable unauthenticated from the LAN.
- Do not hard-code a root password in
init.d/mpt; if a factory default is unavoidable, force a change on first login and never allow remote login before initialization. - Do not start
telnetdunconditionally — use an authenticated, encrypted management interface (or enable telnet only for an explicit, time-boxed debug session). - Gate any debug service behind an explicit opt-in that requires physical presence.
| File | Content |
|---|---|
evidence/QEMU_完整复现日志.txt |
Full end-to-end QEMU reproduction |
evidence/第2次复现日志_干净版.txt / 第3次复现日志_干净版.txt |
2nd / 3rd independent reproductions |
evidence/手工逐条敲命令_完整实录.txt |
Manual step-by-step transcript |
evidence/reproduce_onekey.sh |
~90-second one-key reproduction |