Weston Embedded uC-HTTP HTTP Server form boundary heap-based buffer overflow vulnerability
The HTTP server does not check the length of the multipart form boundary string before copying it into a 72-byte heap buffer, causing a heap overflow. An attacker can send a crafted packet to corrupt heap metadata and potentially achieve arbitrary memory allocation and code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the HTTP Server form boundary functionality of Weston Embedded uC-HTTP v3.01.01. A specially crafted network packet can lead to code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The length of the multipart form boundary value is not validated before being copied into a fixed-size heap buffer.
Impact
An attacker could corrupt heap metadata to achieve arbitrary memory allocation and potentially code execution, though the CVSS vector indicates high attack complexity.
What the attacker needed
Form processing enabled; Attacker can send HTTP requests
The fix
The vendor released a patch that passes the buffer size to the copy function, and users can also mitigate by disabling form processing.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a memory corruption bug in a web server used on small embedded devices. The server copies a user-supplied string into a fixed-size memory area without checking if it fits, so a long string spills over into neighbouring memory. An attacker could use this to crash the device or possibly run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.