| 标题 | Tomato Tomato Firmware Shibby-modified Tomato Firmware (MIPS32 LE). Verified on extracted image labeled d2e251333c486810d9bbce816021bcf1b93dd392 (inter OS Command Injection |
|---|
| 描述 | Authenticated web administrator can achieve root command execution via NVRAM key dhcpc_custom in /sbin/rc function start_dhcpc (0x41CA20). User input is copied without sanitization, embedded in snprintf, and executed as root via _xstart("/bin/sh", "-c", dest) at 0x41CDC0 when DHCP client starts (WAN connect, DHCP renew, exec_service).
CWE-78 (primary), CWE-121 (stack overflow in same function). CVSS 3.1: AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H = 7.2 HIGH.
Dynamic PoC: QEMU MIPS user-mode + firmware rootfs + LD_PRELOAD NVRAM shim; strace shows execve("/bin/sh", "-c", "...;touch /tmp/pwned_dhcpc;#") and proof file created.
Advisory: https://gitee.com/你的用户名/tomato-rc-nvram-cve/blob/master/advisories/en/01-start_dhcpc.md
Fix: use execve with argv for udhcpc (no shell); whitelist dhcpc_custom; bounded string copies. |
|---|
| 来源 | ⚠️ https://gitee.com/WH-YHUST/tomato-rc-nvram-cve/blob/master/gitee-cve-disclosure/advisories/en/01-start_dhcpc.md |
|---|
| 用户 | WH-YHUST (UID 98329) |
|---|
| 提交 | 2026-05-17 09時15分 (19 日前) |
|---|
| 管理 | 2026-06-04 17時32分 (18 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 368360 [Shibby Tomato 1.28.0000 Web UI /sbin/rc start_dhcpc 权限提升] |
|---|
| 积分 | 20 |
|---|