POC — CVE-2024–10914 Command Injection Vulnerability in `name` parameter for D-Link NAS
The `name` parameter in the `cgi_user_add` function of D-Link NAS devices is not properly sanitised, allowing OS command injection. An attacker could execute arbitrary commands remotely on the device.
Published on medium.verylazytech.com
A vulnerability was found in D-Link DNS-320, DNS-320LW, DNS-325 and DNS-340L up to 20241028. It has been declared as critical.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The `name` parameter is not sanitised before being passed to a system command.
What the attacker needed
Target must be a vulnerable D-Link NAS model; Network access to the device's web interface
How it was found
- Clone the exploit repository or copy the script.
- Run the script with the target URL.
- The script checks if the target is vulnerable by sending a test command.
- If vulnerable, the script provides an interactive shell to run commands.
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 write-up has not been written yet. The Original tab links to the source.
This is a command injection bug. The device takes input from a web request and runs it as a system command without cleaning it first. An attacker can send a specially crafted request to run their own commands on the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.