Submit #1096287: D-Link DCS-6501LH (DCS6501LHCx) V3.03.02 (firmware package DCS6501LHCx_FW303B02_SD) Stack-based Buffer Overflow (CWE-121)info

TitleD-Link DCS-6501LH (DCS6501LHCx) V3.03.02 (firmware package DCS6501LHCx_FW303B02_SD) Stack-based Buffer Overflow (CWE-121)
DescriptionA stack-based buffer overflow vulnerability was discovered in D-Link DCS-6501LH camera firmware v3.03.02. The mydlink StreamProxy listener on TCP port 7000 (plaintext HTTP) routes requests that carry a Content-Type header to GetContentlen (0x004A3820 in aoni_ipc), which tokenises the request by CRLF and copies the remainder of the Content-Length header line into a 32-byte stack buffer with strncpy(), using the line length minus 16 as the count and never bounding it to the destination size. The frame is 80 bytes, the buffer is at sp+24 and the saved return address at sp+76, only 52 bytes above it, so a Content-Length header line longer than 68 characters overwrites the saved registers and the return address, and no authentication is involved. Reproduction: send the POST request generated by poc.py (Content-Type header plus a Content-Length line padded with 200 'A' characters) to port 7000; the daemon crashes with pc = ra = 0x41414141 in an emulated run of the stock binary, while an 8-byte padding 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. This is a distinct defect from the Content-Length body copy in the same listener: it depends on the header line length rather than the numeric value and requires its own fix. 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/05-streamproxy-content-length-header-overflow
User
 liuyingqi (UID 102046)
Submission11/14/2026 02:56 (23 days ago)
Moderation12/06/2026 22:56 (23 days later)
StatusAccepted
VulDB entry450917 [D-Link DCS-6501LH 3.03.02 mydlink StreamProxy aoni_ipc GetContentlen stack-based overflow]
Points20

Interested in the pricing of exploits?

See the underground prices here!