Skip to content
Memory corruption Advisory Advanced CVE-2021-21967

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

An out-of-bounds write vulnerability exists in the OTA update task functionality of Sealevel Systems, Inc. SeaConnect 370W v1.3.34.

Francesco Benvenuto and Matt Wiseman, on Cisco Talos

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

  1. The device connects to the MQTTS broker and reports its firmware version.
  2. The broker sends a message to the device's command channel containing an FTP(S) URL and destination filename.
  3. The device parses the message with ParseToDownloadMessage, copying the dest value into a 0x40-byte field without null termination.
  4. 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.

More by Francesco Benvenuto

View all

9 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.