Sealevel Systems, Inc. SeaConnect 370W LLMNR/NBNS stack-based buffer overflow vulnerabilities
The LLMNR and NBNS query parsers on the SeaConnect 370W copy an attacker-supplied name into a fixed 32-byte stack buffer without checking its length. A crafted UDP packet can overflow the stack, overwrite the saved return address and let an attacker redirect execution to an address they control, potentially achieving remote code execution.
Originally disclosed on Cisco Talos
A stack-based buffer overflow vulnerability exists in both the LLMNR and NBNS 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 parser reads a length byte from the packet and copies that many bytes into a 32-byte stack buffer with no bounds check, so an oversized name overwrites the saved link register.
Impact
An attacker who can send packets to the device could achieve remote code execution, though the controllable overflow is limited to 255 bytes because the length field is a single byte.
What the attacker needed
Network access to the device; send a crafted UDP packet; no authentication needed
How it was found
- Craft a UDP packet in the DNS header format with a large length octet and an oversized queried name.
- Send the packet to the device's LLMNR port or its NBNS port.
- The parser copies the name into the fixed stack buffer, overflowing it and corrupting the saved return address.
- When the function returns, the corrupted value is loaded into the program counter and execution goes to the attacker-chosen address.
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 listens for two kinds of name-lookup messages on the local network (LLMNR and NBNS). When it reads the name in such a message, it copies it into a small fixed-size space on the stack without checking how long the name is. A long name spills over into nearby memory, including the address the device will jump back to, so an attacker can steer the device into running their own code.
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.