D-Link DNS-320 OS Command Injection Vulnerability in webfile_mgr.cgi

Vulnerability

A security vulnerability allowing OS command injection has been identified in the D-Link DNS-320 ShareCenter NAS, specifically in the firmware version 2.06B01 HOTFIX. The issue arises in the webfile_mgr.cgi component, where file operation functions such as delete, rename, copy, move, chmod, and chown improperly handle path and name parameters. These parameters are read via cgiFormString() and then embedded into shell commands using sprintf(), leading to command execution. The vulnerability can be exploited remotely, and public proof-of-concept evidence is available.

Impact

Exploitation of this vulnerability allows for arbitrary OS command execution on the affected device.

Reproduction

The vulnerability can be reproduced by sending a POST request to the /cgi-bin/webfile_mgr.cgi endpoint. The request must include a valid session cookie and specify the 'cmd' parameter with a file operation command, such as 'cgi_del' for deletion. The 'path' parameter should be crafted to include the injected command, such as ';id' to execute the 'id' command on the server.

Added: May 11, 2026, 5:19 AM
Updated: May 11, 2026, 5:19 AM

Vulnerability Rating

Custom Algorithm
spread
4.5
impact
10.0
exploitability
6.2
remediation
0.0
relevance
7.6
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.