(0Day) D-Link DCS-960L HNAP Login Cookie Format String Remote Code Execution Vulnerability

December 15th, 2020

Vulnerability Details

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DCS-960L Wi-Fi cameras. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of login action requests. The issue results from the lack of proper validation of a user-supplied string before using it as a format specifier. An attacker can leverage this vulnerability to execute code in the context of the device.

Additional Details

This vulnerability is being disclosed publicly without a patch in accordance with the ZDI 120 day deadline.

07/22/20 - ZDI reported the vulnerability to D-Link
10/16/20 - ZDI requested a status update
12/09/20 - ZDI notified D-Link of the intention to publish the report as 0-day advisory on 12/15/2020

-- Mitigation:
Given the nature of the vulnerability the only salient mitigation strategy is to restrict interaction with the application.


Disclosure Timeline

  • 2020-07-22 - Vulnerability reported to vendor
  • 2020-12-15 - Coordinated public release of advisory

Credit

chung96vn of Vietnam's NCSC

Back to Advisories