Description
An OS command injection vulnerability exists in multiple D-Link routers (confirmed on DIR-300 rev A v1.05 and DIR-615 rev D v4.13) via the authenticated tools_vct.xgi CGI endpoint. The web interface fails to properly sanitize user-supplied input in the pingIp parameter, allowing attackers with valid credentials to inject arbitrary shell commands. Exploitation enables full device compromise, including spawning a telnet daemon and establishing a root shell. The vulnerability is present in firmware versions that expose tools_vct.xgi and use the Mathopd/1.5p6 web server. No vendor patch is available, and affected models are end-of-life.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
D-Link DIR-300 rev A
Default version status: unaffected
0 to ≤ 1.05affected
D-Link DIR-615 rev D
Default version status: unaffected
0 to ≤ 4.13affected
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/dlink_dir300_exec_telnet.rb ↗
- https://www.exploit-db.com/exploits/25024 ↗
- https://www.exploit-db.com/exploits/27428 ↗
- https://web.archive.org/web/20140830203110/http://www.s3cur1ty.de/m1adv2013-014 ↗
- https://www.vulncheck.com/advisories/d-link-legacy-unauth-rce-2 ↗
- https://www.exploit-db.com/raw/25024 ↗