Vulnerability & Exploit Database

Back to search

D-Link Devices HNAP SOAPAction-Header Command Execution

Different D-Link Routers are vulnerable to OS command injection in the HNAP SOAP interface. Since it is a blind OS command injection vulnerability, there is no output for the executed command. This module has been tested on a DIR-645 device. The following devices are also reported as affected: DAP-1522 revB, DAP-1650 revB, DIR-880L, DIR-865L, DIR-860L revA, DIR-860L revB DIR-815 revB, DIR-300 revB, DIR-600 revB, DIR-645, TEW-751DR, TEW-733GR

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • Samuel Huntley
  • Craig Heffner
  • Michael Messner <devnull [at]>



  • MIPS Little Endian
  • MIPS Big Endian


  • linux


  • mipsle
  • mipsbe



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/dlink_hnap_header_exec_noauth msf exploit(dlink_hnap_header_exec_noauth) > show targets ...targets... msf exploit(dlink_hnap_header_exec_noauth) > set TARGET <target-id> msf exploit(dlink_hnap_header_exec_noauth) > show options and set options... msf exploit(dlink_hnap_header_exec_noauth) > exploit