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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| D-Link | DIR-300 rev A | ≤ 1.05 | — |
| D-Link | DIR-615 rev D | ≤ 4.13 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
D-Link Devices Unauthenticated Remote Command Execution
exploit/linux/http/dlink_dir300_exec_telnet
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/dlink_dir300_exec_telnet.rb exploit
- https://www.exploit-db.com/exploits/25024 exploit
- https://www.exploit-db.com/exploits/27428 exploit
- https://web.archive.org/web/20140830203110/http://www.s3cur1ty.de/m1adv2013-014 technical-description exploit
- https://www.vulncheck.com/advisories/d-link-legacy-unauth-rce-2 third-party-advisory