Advisory Details

December 15th, 2020

D-Link DAP-1860 HNAP Authorization Command Injection Remote Code Execution Vulnerability

ZDI-20-1428
ZDI-CAN-10880

CVE ID CVE-2020-27864
CVSS SCORE 8.8, AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS D-Link
AFFECTED PRODUCTS DAP-1860
VULNERABILITY DETAILS

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DAP-1860 WiFi extenders. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the HNAP service, which listens on TCP port 80 by default. When parsing the Authorization request header, the process does not properly validate a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the device.

ADDITIONAL DETAILS D-Link has issued an update to correct this vulnerability. More details can be found at:
https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10197
DISCLOSURE TIMELINE
  • 2020-07-01 - Vulnerability reported to vendor
  • 2020-12-15 - Coordinated public release of advisory
CREDIT chung96vn of Vietnam Cyber Security Center
BACK TO ADVISORIES