Rapid7 Vulnerability & Exploit Database

D-Link hedwig.cgi Buffer Overflow in Cookie Header

Back to Search

D-Link hedwig.cgi Buffer Overflow in Cookie Header

Disclosed
02/08/2013
Created
05/30/2018

Description

This module exploits an anonymous remote code execution vulnerability on several D-Link routers. The vulnerability exists in the handling of HTTP queries to the hedwig.cgi with long value cookies. This module has been tested successfully on D-Link DIR300v2.14, DIR600 and the DIR645A1_FW103B11 firmware.

Author(s)

  • Roberto Paleari
  • Craig Heffner
  • Michael Messner <devnull@s3cur1ty.de>

Platform

Linux

Architectures

mipsle

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;