SecurityContext

CVE-2017-8416: D-Link DCS Devices - Buffer Overflow

  • Cve: CVE-2017-8416
  • Name: D-Link DCS Devices - Buffer Overflow
  • Description: An issue was discovered on D-Link DCS-1100 and DCS-1130 devices. The device runs a custom daemon on UDP port 5978 which is called "dldps2121" and listens for broadcast packets sent on 255.255.255.255. This daemon handles custom D-Link UDP based protocol that allows D-Link mobile applications and desktop applications to discover D-Link devices on the local network. The binary processes the received UDP packets sent from any device in "main" function. One path in the function traverses towards a block of code that processing of packets which does an unbounded copy operation which allows to overflow the buffer. The custom protocol created by Dlink follows the following pattern: Packetlen, Type of packet; M=MAC address of device or broadcast; D=Device Type;C=base64 encoded command string;test=1111 We can see at address function starting at address 0x0000DBF8 handles the entire UDP packet and performs an insecure copy using strcpy function at address 0x0000DC88. This results in overflowing the stack pointer after 1060 characters and thus allows to control the PC register and results in code execution. The same form of communication can be initiated by any process including an attacker process on the mobile phone or the desktop and this allows a third-party application on the device to execute commands on the device without any authentication by sending just 1 UDP packet with custom base64 encoding.
  • Impact: Remote attackers can execute arbitrary code on the device, potentially leading to full device compromise.
  • Remediation: Update to the latest firmware version provided by D-Link that addresses this vulnerability.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.11589
  • Epss percentile: 0.96146
  • Assignee: [email protected]
  • Published at: 2019-07-02T21:15:10Z
  • Age in days: 2702
  • Modified at: 2026-06-17T01:26:21Z
  • References total: 2
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2017-8416
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

References

UrlSourceTags
http://packetstormsecurity.com/files/153226/Dlink-DCS-1130-Command-Injection-CSRF-Stack-Overflow.htmlnvdThird Party Advisory, VDB Entry
https://seclists.org/bugtraq/2019/Jun/8nvdMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
dlink:dcs-1130_firmwareall versionsyesnvd/v1/products/dlink/dcs-1130_firmware
dlink:dcs-1100_firmwareall versionsyesnvd/v1/products/dlink/dcs-1100_firmware

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Checked, none or zero: known exploited, known exploited by, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts