| Title | D-Link DCS-6501LH (DCS6501LHCx) V3.03.02 (firmware package DCS6501LHCx_FW303B02_SD) Heap-based Buffer Overflow (CWE-787) |
|---|
| Description | A heap-based buffer overflow (out-of-bounds write) vulnerability was discovered in D-Link DCS-6501LH camera firmware v3.03.02. The RTSP server of the aoni_ipc application allocates a fixed 276-byte request object in RTSPServerParseMessage and stores every parsed header as a pointer pair at v5[2*count+5] / v5[2*count+6] without bounding the header count, so a request carrying more than 31 headers writes past the end of the allocation. The 32nd header already writes 8 bytes past the 276-byte chunk, and every additional header extends the overflow by another 8 bytes (two heap pointers), up to the size that the RTSP receive path accepts. Parsing happens before any authentication check, and the service is reachable on TCP port 554 without credentials. Reproduction: run the PoC script in this directory against port 554 of the target (an OPTIONS request with 32 header lines); the server answers with a corrupted 200 OK whose first four bytes are a heap pointer instead of "RTSP/1.0", then the process aborts because of glibc heap corruption. Verified six out of six times in an emulated environment running the stock aoni_ipc binary, where the daemon died with SIGABRT right after the corrupted response was sent. Impact: unauthenticated remote denial of service (repeated crashes drive the watchdog to restart or reboot the device) and disclosure of heap pointer values together with corruption of adjacent heap objects, which can be developed further towards code execution. Proposed CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H (7.1). |
|---|
| Source | ⚠️ https://github.com/Zimo-666/D-Link-DCS-6501LH-cves/tree/main/01-rtsp-parser-heap-overflow |
|---|
| User | liuyingqi (UID 102046) |
|---|
| Submission | 11/14/2026 02:50 (23 days ago) |
|---|
| Moderation | 12/06/2026 22:55 (23 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 450913 [D-Link DCS-6501LH 3.03.02 RTSP Server /mnt/mtd/aoni_ipc RTSPServerParseMessage out-of-bounds write] |
|---|
| Points | 20 |
|---|