Submit #1096285: 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. ValidateAuthorizationHeader in the aoni_ipc RTSP server copies the username value of a Digest Authorization header into an 80-byte stack buffer with strncpy(), using the distance to the next double quote as the length without any bound. The stack frame is 512 bytes; the destination is 348 bytes below the saved return address, so a username longer than 348 bytes overwrites the saved registers and the return address, and the header is parsed before any password comparison, so no valid credentials are needed. Reproduction: send the TEARDOWN request generated by poc.py to an existing RTSP session (the built-in echoshow session created at startup) with a 400-byte Digest username; the daemon crashes with pc = ra = 0x41414141 in an emulated run of the stock binary, which proves control of the instruction pointer. Impact: unauthenticated remote code execution in the RTSP daemon (running as root), demonstrated as instruction-pointer control with a crash-only payload; the same request with a short username returns 401 Unauthorized and leaves the service running. 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/03-rtsp-digest-username-overflow
User
 liuyingqi (UID 102046)
Submission11/14/2026 02:53 (23 days ago)
Moderation12/06/2026 22:55 (23 days later)
StatusAccepted
VulDB entry450915 [D-Link DCS-6501LH 3.03.02 RTSP Server ValidateAuthorizationHeader username stack-based overflow]
Points20

Interested in the pricing of exploits?

See the underground prices here!