Sealevel Systems, Inc. SeaConnect 370W OTA Update "u-download" heap-based buffer overflow vulnerability
A heap-based buffer overflow in the OTA update message parsing of the SeaConnect 370W allows an attacker who can intercept MQTT traffic to send a crafted payload that overflows a heap buffer and can lead to remote code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the OTA Update u-download functionality of Sealevel Systems, Inc. SeaConnect 370W v1.3.34.
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 code allocates a buffer of at most 256 bytes but then copies the entire payload into it without checking the payload length, causing a heap overflow.
Impact
A remote attacker who can perform a man-in-the-middle attack could execute arbitrary code on the device.
What the attacker needed
Man-in-the-middle position on MQTT traffic
How it was found
- Intercept the MQTT connection between the device and the cloud broker.
- Send a crafted MQTT message with a name field of u-download and a payload larger than 256 bytes.
- The payload is unescaped into a heap buffer, overflowing it and corrupting heap metadata.
- Control the next malloc return to achieve code execution.
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.
The device receives firmware update instructions over a network connection. It copies the instruction into a memory buffer but does not check if the instruction is too long, so it spills over into adjacent memory. An attacker who can intercept the connection can send an overly long instruction to take control of 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.