Insteon Hub HTTPExecuteGet Parameters Extraction Code Execution Vulnerability
The HTTP server in Insteon Hub firmware extracts GET parameters into a fixed-size stack array without checking how many parameters are supplied. An attacker can send a request with more than four parameters to overflow the stack and overwrite saved registers, potentially leading to code execution.
Originally disclosed on Cisco Talos
An exploitable stack-based buffer overflow vulnerability exists in Insteon Hub running firmware version 1012. The HTTP server implementation unsafely extracts parameters from the query string, leading to a buffer overflow on the stack.
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 parameter extraction function loops over all NULL-separated strings in the query data without checking the destination array's capacity, writing past its five-pointer limit.
Impact
An attacker could overwrite saved registers and the return address, potentially achieving code execution; the proof of concept only demonstrates a crash.
What the attacker needed
Valid basic-auth credentials; network access to the device
How it was found
- Send an HTTP GET request to the device's web server with basic authentication.
- Include more than four parameters in the query string.
- The server extracts each parameter into a local array without a size check, overflowing the stack.
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.
A buffer overflow happens when a program writes more data into a fixed-size memory area than it can hold, spilling into nearby memory. Here, the device's web server expects at most four URL parameters but does not stop collecting them, so extra parameters overwrite important saved values on the stack. This can crash the device or let an attacker control what the program does next.
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.