| Title | Tomato by Shibby Tomato Firmware Tomato v1.28.0000 -126 K26ARM initial-64K OS Command Injection |
|---|
| Description | rstats reads the configuration item rstats_path from NVRAM and later uses it as part of a shell command that is executed through system().
The verified vulnerable chain is:
nvram_get("rstats_path") -> sub_94B4 -> sub_9500 -> strlcpy(new, ..., 64) -> sub_934C(new) -> sub_92B0 -> 0x92e0 sprintf("gzip -dc %s > %s", a1, "/var/tmp/rstats-uncomp") -> 0x92e8 system(v11)
The dangerous behavior is in sub_92B0:
0x92e0: sprintf(v11, "gzip -dc %s > %s", a1, "/var/tmp/rstats-uncomp")
0x92e8: system(v11) is invoked on the resulting string
Because a1 is inserted into a shell command without quoting, escaping, or avoiding the shell entirely, shell metacharacters in rstats_path break out of the intended gzip -dc <path> command and introduce attacker-controlled commands. |
|---|
| Source | ⚠️ https://gitee.com/Fengyi-Wang/CVE/issues/IJTQ5Q |
|---|
| User | Anonymous User |
|---|
| Submission | 06/10/2026 17:37 (2 months ago) |
|---|
| Moderation | 07/17/2026 16:14 (1 month later) |
|---|
| Status | Duplicate |
|---|
| VulDB entry | 368363 [Shibby Tomato 1.28.0000 Web UI /bin/rstats rstats_path os command injection] |
|---|
| Points | 0 |
|---|