Gửi #855124: Tomato by Shibby Tomato Firmware Tomato v1.28 RT-N5x MIPSR2 build 124 Mini Stack-based Buffer Overflowthông tin

tiêu đềTomato by Shibby Tomato Firmware Tomato v1.28 RT-N5x MIPSR2 build 124 Mini Stack-based Buffer Overflow
Mô tảsub_40BB50 renders Web monitor records from /proc/webmon_recent_domains and /proc/webmon_recent_searches. Each line is parsed with sscanf("%lu\t%s\t%s", ...) into fixed-size stack buffers. int ts; char name[64]; unsigned char text[256]; char line[512]; unsigned char host[1028]; sprintf(line, "/proc/webmon_recent_%s", kind); fp = fopen(line, "r"); while (fgets(line, 512, fp)) { if (sscanf(line, "%lu\t%s\t%s", &ts, name, text) == 3) { resolve_addr(name, host); escaped = utf8_to_js_string(text); web_printf(..., name, escaped, ...); } } The %s format specifiers do not limit the number of bytes copied into name[64] or text[256]. A long domain/search token recorded by webmon can overwrite adjacent stack variables.
Nguồn⚠️ https://gitee.com/Fengyi-Wang/CVE/issues/IJTQ5T
Người dùng
 Cormac315 (UID 97273)
Đệ trình10/06/2026 16:22 (cách đây 1 tháng)
Kiểm duyệt17/07/2026 16:14 (1 month later)
Trạng tháiđược chấp nhận
Mục VulDB379800 [Shibby Tomato 1.28 RT-N5x MIPSR2 Build 124 webmon_recent_domains sub_40BB50 tràn bộ đệm]
điểm20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!