Sealevel Systems, Inc. SeaConnect 370W OTA update task out-of-bounds write vulnerability
An out-of-bounds write exists in the OTA update task of the SeaConnect 370W due to a non-null-terminated destination string, allowing a crafted MQTT message to cause a stack-based buffer overflow. An attacker performing a man-in-the-middle attack could trigger a denial of service by crashing the device.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the OTA update task 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
Likely the destination field in the OTA update structure is not null-terminated because a longer string is copied into a smaller buffer, and a subsequent strcpy reads past the field into adjacent memory.
Impact
A man-in-the-middle attacker could send a crafted MQTT message to crash the device, resulting in a denial of service.
What the attacker needed
Man-in-the-middle position on MQTTS traffic
How it was found
- The device connects to the MQTTS broker and reports its firmware version.
- The broker sends a message to the device's command channel containing an FTP(S) URL and destination filename.
- The device parses the message with ParseToDownloadMessage, copying the dest value into a 0x40-byte field without null termination.
- The OTA update task later calls SeaConnectOTADownload_file, which uses strcpy to copy the non-null-terminated dest field into a smaller stack buffer, causing an overflow.
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 device receives firmware updates over a network connection. A flaw in how it handles update messages means a malicious message can overwrite memory on the device, causing it to crash. An attacker who can intercept network traffic could send such a message to disrupt 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.