Vulnerability & Exploit Database

Back to search

D-Link HNAP Request Remote Buffer Overflow

This module exploits an anonymous remote code execution vulnerability on different D-Link devices. The vulnerability is due to a stack based buffer overflow while handling malicious HTTP POST requests addressed to the HNAP handler. This module has been successfully tested on D-Link DIR-505 in an emulated environment.

Free Metasploit Download

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

 Download Now

Module Name

exploit/linux/http/dlink_hnap_bof

Authors

  • Craig Heffner
  • Michael Messner <devnull [at] s3cur1ty.de>

References

Targets

  • Automatic Targeting
  • D-Link DSP-W215 - v1.0
  • D-Link DIR-505 - v1.06
  • D-Link DIR-505 - v1.07

Platforms

  • linux

Architectures

  • mipsbe

Reliability

Development

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_bof msf exploit(dlink_hnap_bof) > show targets ...targets... msf exploit(dlink_hnap_bof) > set TARGET <target-id> msf exploit(dlink_hnap_bof) > show options ...show and set options... msf exploit(dlink_hnap_bof) > exploit