Skip to content
RCE Advisory Advanced

(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.

phieulang aka Hoang Le Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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.

phieulang aka Hoang Le of VietSunShine Cyber Security Services, on the Zero Day Initiative

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.

More by phieulang aka Hoang Le

View all

5 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.