D-Link DIR-868L B1 Unauthenticated OS Command Injection Vulnerability

Vulnerability

A command injection vulnerability allowing unauthenticated remote command execution as root has been identified in the D-Link DIR-868L B1 router, specifically in the firmware version FW2.05WWB02. The vulnerability resides in the fileaccess.cgi component, where the UploadFile API endpoint accepts a pre_api_arg parameter. This parameter is passed directly to system-level shell execution functions without proper sanitization or authentication, enabling remote attackers to execute arbitrary commands via crafted HTTP requests.

Impact

Exploitation of this vulnerability leads to full compromise of the affected device, with potential for persistent backdoors through modified startup scripts. It also allows interception of network traffic, DNS hijacking, and could result in inclusion in botnet campaigns or lateral movement within home or enterprise networks.

Reproduction

The vulnerability can be reproduced by sending a crafted HTTP request to the /dws/api/UploadFile endpoint, injecting arbitrary commands through the pre_api_arg parameter. This can be done remotely over the WAN if the router's remote access or port forwarding is enabled, or over the LAN by default.

Remediation

Users are advised to disconnect vulnerable DIR-868L B1 routers from the internet, disable remote administration and port forwarding, and replace legacy hardware with models that receive regular updates.

Added: Aug 28, 2025, 3:19 PM
Updated: Aug 28, 2025, 3:19 PM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
9.2

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