D-Link DIR-878A1
cpe:2.3:h:d-link:dir-878:*:*:*:*:*:*:*, +8 more
- FW101B04.bin
A command injection vulnerability has been identified in the D-Link DIR-878A1 router, specifically in the firmware version FW101B04.bin. This vulnerability allows unauthenticated remote attackers to execute arbitrary commands on the device. The issue arises in the 'SetDynamicDNSSettings' feature within 'prog.cgi', where the 'ServerAddress' and 'Hostname' parameters are improperly handled. These parameters are stored in NVRAM and later retrieved by a script that executes system commands, creating a pathway for exploitation.
Exploitation of this vulnerability allows for arbitrary command execution on the affected router.
To reproduce this vulnerability, send a POST request to the '/cgi-bin/prog.cgi' endpoint. Include the 'ServerAddress' parameter with a crafted value that includes a command injection payload, and the 'Hostname' parameter with a normal hostname value. Alternatively, inject a command through the 'Hostname' parameter while providing a valid 'ServerAddress'.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.