Anker Eufy Homebase 2 pushMuxer processRtspInfo heap buffer overflow vulnerability
A heap buffer overflow in the RTSP server of the Anker Eufy Homebase 2 allows an unauthenticated network attacker to overflow a session buffer and corrupt adjacent session structures, potentially leading to arbitrary memory write and code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the pushMuxer processRtspInfo functionality of Anker Eufy Homebase 2 2.1.6.9h. A specially-crafted network packet can lead to a heap buffer overflow.
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 RTSP server reads a fixed 0x800 bytes into a buffer at an offset without checking remaining space, allowing overflow into adjacent session structures.
Impact
An unauthenticated remote attacker could overflow heap memory and potentially achieve arbitrary write and code execution on the device.
What the attacker needed
Network access to the device; no authentication required
How it was found
- Send an RTSP packet with a valid verb but without a double CRLF within 0x800 bytes to set the session's packet read status to 3.
- Wait for the server to process other sessions and return to the same session.
- Send another packet; the server reads 0x800 bytes starting at an offset within the buffer, overflowing into the next session structure.
- Observe that the adjacent session structure is overwritten with attacker-controlled data.
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 runs a small server that handles video streaming requests. When it receives a request that is too long, it writes past the end of a fixed-size memory buffer and into neighbouring memory. An attacker on the network can send such a request to corrupt memory and possibly 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.