Description
An authenticated OS command injection vulnerability exists in various Linksys router models (tested on WRT160Nv2) running firmware version v2.0.03 via the apply.cgi endpoint. The web interface fails to properly sanitize user-supplied input passed to the ping_size parameter during diagnostic operations. An attacker with valid credentials can inject arbitrary shell commands, enabling remote code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linksys | WRT160nv2 | 2.0.03 | — |
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
-
Linksys WRT160nv2 apply.cgi Remote Command Injection
exploit/linux/http/linksys_wrt160nv2_apply_exec
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/linksys_wrt160nv2_apply_exec.rb exploit
- https://www.exploit-db.com/exploits/24478 exploit
- https://www.exploit-db.com/exploits/25608 exploit
- https://web.archive.org/web/20140830181242/http://www.s3cur1ty.de/m1adv2013-012 technical-description exploit
- https://www.vulncheck.com/advisories/linksys-legacy-routers-remote-command-injection third-party-advisory