Sealevel Systems, Inc. SeaConnect 370W OTA update task file overwrite vulnerability
The OTA update task of the SeaConnect 370W does not validate the destination filename in an MQTT message, allowing an attacker who can intercept the MQTTS connection to overwrite arbitrary files. By overwriting a settings file, an attacker could set the HTTP basic auth password to a known value and then make arbitrary HTTP requests.
Originally disclosed on Cisco Talos
A file 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 OTA update task fails to validate the destination filename supplied in the MQTT message, allowing path traversal or arbitrary file overwrite.
Impact
An attacker could overwrite arbitrary files, such as the settings file, potentially leading to setting the HTTP basic auth password to a known value and enabling arbitrary HTTP requests.
What the attacker needed
Man-in-the-middle position on MQTTS
How it was found
- Intercept the MQTTS connection between the device and the SeaCloud broker.
- Send a crafted MQTT message with a destination filename pointing to a sensitive file.
- The device downloads the file from the specified FTP(S) URI and writes it to the destination, overwriting the file.
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 updates over a network connection. The update message includes a filename where the new firmware should be saved. The device does not check that this filename is safe, so an attacker who can intercept the connection can make the device save the update over any file, including important settings files.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.