Weston Embedded uC-HTTP HTTP Server buffer overflow vulnerability
A heap-based buffer overflow exists in the HTTP server when parsing the protocol version of a request. An attacker can send a malicious packet to trigger the overflow and potentially achieve arbitrary code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the HTTP Server functionality of Weston Embedded uC-HTTP v3.01.01. A specially crafted set of network packets can lead to arbitrary 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
Likely an integer underflow in the remaining buffer length calculation because the search for the end of the request line does not account for skipped characters, leading to an out-of-bounds memory copy.
Impact
An attacker could leverage this vulnerability to gain arbitrary code execution.
What the attacker needed
Network access to the HTTP server
The fix
The vendor released a patch on 2023-06-23.
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. When the server reads the version part of an HTTP request, it can be tricked into calculating a negative length, which then causes it to write data outside the intended memory area. An attacker could exploit this to run their own code on the device.
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.