Stack-based buffer overflow in the do_hnap function in www/my_cgi.cgi in D-Link DSP-W215 (Rev. A1) with firmware 1.01b06 and earlier, DIR-505 with firmware before 1.08b10, and DIR-505L with firmware 1.01 and earlier allows remote attackers to execute arbitrary code via a long Content-Length header in a GetDeviceSettings action in an HNAP request.
packetstormsecurity.com/files/127427/D-Link-HNAP-Request-Remote-Buffer-Overflow.html
secunia.com/advisories/58728
secunia.com/advisories/58972
securityadvisories.dlink.com/security/publication.aspx?name=SAP10027
securityadvisories.dlink.com/security/publication.aspx?name=SAP10029
www.devttys0.com/2014/05/hacking-the-d-link-dsp-w215-smart-plug
www.securityfocus.com/bid/67651