| 제목 | 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. AM 11:56 (26 날 ago) |
|---|
| 모더레이션 | 2026. 11. 28. AM 03:25 (26 days later) |
|---|
| 상태 | 중복 |
|---|
| VulDB 항목 | 411795 [TOTOLINK N150RT 까지 3.4.0-B20201030 Port-Forwarding Configuration /boafrm/formPortFw ip_subnet/fw_ip 메모리 손상] |
|---|
| 포인트들 | 0 |
|---|