| Title | D-Link DCS-6501LH (DCS6501LHCx) V3.03.02 (firmware package DCS6501LHCx_FW303B02_SD) Stack-based Buffer Overflow (CWE-121) |
|---|
| Description | A stack-based buffer overflow vulnerability was discovered in D-Link DCS-6501LH camera firmware v3.03.02. The mydlink StreamProxy service that starts during normal boot listens on TCP port 7000 in plaintext; its per-client handler ExecuteOneAccept (0x004A38FC in aoni_ipc) reads an HTTP request, parses the Content-Length header and copies that many bytes into a 1024-byte stack buffer, validating only that the value is below 5121. The stack frame is 3168 bytes, the destination buffer is at sp+2088 and the saved return address at sp+3164, only 1076 bytes above it, so any Content-Length above 1076 overwrites saved registers and the return address, and no authentication is involved. Reproduction: send the POST request generated by poc.py (Content-Length 4000 with a 1500-byte body) to port 7000; the daemon crashes with pc = ra = 0x41414141 in an emulated run of the stock binary, proving control of the instruction pointer, while a Content-Length of 64 leaves the service running. Impact: unauthenticated remote code execution in the camera daemon running as root, demonstrated as instruction-pointer control with a crash-only payload. Proposed CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (8.8). |
|---|
| Source | ⚠️ https://github.com/Zimo-666/D-Link-DCS-6501LH-cves/tree/main/04-streamproxy-content-length-body-overflow |
|---|
| User | liuyingqi (UID 102046) |
|---|
| Submission | 11/14/2026 02:56 (23 days ago) |
|---|
| Moderation | 12/06/2026 22:56 (23 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 450916 [D-Link DCS-6501LH 3.03.02 mydlink StreamProxy aoni_ipc ExecuteOneAccept Content-Length stack-based overflow] |
|---|
| Points | 20 |
|---|