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

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

A heap-based buffer overflow vulnerability exists in the OTA Update u-download 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

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

  1. Intercept the MQTT connection between the device and the cloud broker.
  2. Send a crafted MQTT message with a name field of u-download and a payload larger than 256 bytes.
  3. The payload is unescaped into a heap buffer, overflowing it and corrupting heap metadata.
  4. 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.

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.