Description
httpd.c in httpd in the management GUI in DD-WRT 24 sp1, and other versions before build 12533, allows remote attackers to execute arbitrary commands via shell metacharacters in a request to a cgi-bin/ URI.
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.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Metasploit 1 module
-
DD-WRT HTTP Daemon Arbitrary Command Execution
exploit/linux/http/ddwrt_cgibin_exec
Exploit-DB 3
- DD-WRT HTTPd Daemon/Service - Arbitrary Command Execution (Metasploit) EDB-16856 · webapps · Jul 7, 2010 · verified
- DD-WRT HTTPd Daemon/Service - Remote Command Execution EDB-9209 · remote · Jul 20, 2009 · verified
- DD-WRT HTTP v24-SP1 - Command Injection EDB-10030 · remote · Jul 20, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 35742 vdb-entry
- 9209 exploit
- http://www.dd-wrt.com/
- 55990 vdb-entry
- http://www.theregister.co.uk/2009/07/21/critical_ddwrt_router_vuln/
- http://isc.sans.org/diary.html?storyid=6853
- 1022596 vdb-entry
- http://www.dd-wrt.com/phpBB2/viewtopic.php?t=55173
- http://metasploit.com/svn/framework3/trunk/modules/exploits/linux/http/ddwrt_cgibin_exec.rb