D-Link DAP-1860 HNAP Authorization Command Injection Remote Code Execution Vulnerability
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