| 标题 | TOTOLINK N150RT V3.4.0-B20201030 Stack Buffer Overflow |
|---|
| 描述 | A stack-based buffer overflow vulnerability exists in the web management interface of TOTOLINK N150RT (NTR150) firmware V3.4.0-B20201030. It is reachable through the route /boafrm/formPortFw (port-forwarding configuration handler) and is triggered by the ip_subnet and fw_ip request parameters during the rule-addition flow.
When addPortFw is set, the handler concatenates ip_subnet and fw_ip into a fixed 32-byte stack buffer with an unbounded sprintf():
v15 = sub_40E9E0(a1, "ip_subnet", ""); // request parameter, no length limit
v14 = sub_40E9E0(a1, "fw_ip", ""); // request parameter, no length limit
...
sprintf(v34, "%s%s", v15, v14); // 0x4159B4 — v34[32], UNBOUNDED concat
inet_aton(v34, v36); // subsequent parse (fails on long input)
The combined length of ip_subnet + fw_ip exceeding 31 bytes overflows v34[32]. |
|---|
| 来源 | ⚠️ https://gist.github.com/H3rmesk1t/0f2e6a120c92a37282779516b7e93e03 |
|---|
| 用户 | LiuYijun_JX.SGCC (UID 102035) |
|---|
| 提交 | 2026-11-02 11時56分 (26 日前) |
|---|
| 管理 | 2026-11-28 03時25分 (26 days later) |
|---|
| 状态 | 重复 |
|---|
| VulDB条目 | 411795 [TOTOLINK N150RT 直到 3.4.0-B20201030 Port-Forwarding Configuration /boafrm/formPortFw ip_subnet/fw_ip 内存损坏] |
|---|
| 积分 | 0 |
|---|