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.
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.
Link | Tags |
---|---|
http://securityadvisories.dlink.com/security/publication.aspx?name=SAP10027 | vendor advisory |
http://www.devttys0.com/2014/05/hacking-the-d-link-dsp-w215-smart-plug | exploit |
http://secunia.com/advisories/58728 | third party advisory |
http://packetstormsecurity.com/files/127427/D-Link-HNAP-Request-Remote-Buffer-Overflow.html | exploit |
http://secunia.com/advisories/58972 | third party advisory |
http://securityadvisories.dlink.com/security/publication.aspx?name=SAP10029 | vendor advisory |
http://www.securityfocus.com/bid/67651 | vdb entry exploit |