(0Day) D-Link DCS-960L HNAP Cookie Format String Remote Code Execution Vulnerability
A format string vulnerability in the Cookie header handling of D-Link DCS-960L cameras allows unauthenticated network-adjacent attackers to execute arbitrary code. The flaw arises because a user-supplied string is used as a format specifier without validation.
Originally disclosed on Zero Day Initiative
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 full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker on the same network could execute arbitrary code on the camera, but the advisory notes that restricting network interaction is the only mitigation.
What the attacker needed
Network-adjacent access; no authentication required
The fix
The vulnerability was not patched; the only mitigation is to restrict interaction with the application.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A format string bug happens when a program takes text from a user and uses it as a template for output without checking it. Here, the camera does this with the Cookie header, so an attacker on the same network can send a special Cookie that makes the camera run the attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.