| शीर्षक | Tomato by Shibby Tomato Firmware 1.28 Stack-based Buffer Overflow |
|---|
| विवरण | `tomatodata.cgi` retrieves UPS information and parses the UPS response field identified as `DATE`.
In the verified sample, `cgi_main()` calls:
get_ups_field(host, "date", &stack_buf, 0x100);
where `stack_buf` is a 256-byte stack buffer.
The `date` field maps to the `DATE` token with `mode=0`, which forces execution into the unbounded byte-copy path in `get_ups_field()` at `0x9040`. That path copies bytes until a newline is encountered and does not enforce the caller-provided length argument `a4`.
As a result, an attacker-controlled `DATE` field longer than 256 bytes causes an out-of-bounds write on the stack. |
|---|
| स्रोत | ⚠️ https://gitee.com/Fengyi-Wang/CVE/issues/IJK7BC |
|---|
| उपयोगकर्ता | Cormac315 (UID 97273) |
|---|
| सबमिशन | 02/05/2026 04:12 PM (1 महीना पहले) |
|---|
| संयम | 29/05/2026 10:32 AM (27 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 367151 [Shibby Tomato 1.28 tomatodata.cgi get_ups_field तारीख बफ़र ओवरफ़्लो] |
|---|
| अंक | 20 |
|---|