Description
Processing malformed SOAP messages when performing the HNAP Login action causes a buffer overflow in the stack in some D-Link DIR routers. The vulnerable XML fields within the SOAP body are: Action, Username, LoginPassword, and Captcha. The following products are affected: DIR-823, DIR-822, DIR-818L(W), DIR-895L, DIR-890L, DIR-885L, DIR-880L, DIR-868L, and DIR-850L.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| D-Link | DIR-823 | — | — |
| D-Link | DIR-822 | — | — |
| D-Link | DIR-818L(W) | — | — |
| D-Link | DIR-895L | — | — |
| D-Link | DIR-890L | — | — |
| D-Link | DIR-885L | — | — |
| D-Link | DIR-880L | — | — |
| D-Link | DIR-868L | — | — |
| D-Link | DIR-850L | — | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Dlink DIR Routers Unauthenticated HNAP Login Stack Buffer Overflow
exploit/linux/http/dlink_hnap_login_bof
Exploit-DB 1
- D-Link DIR-Series Routers - HNAP Login Stack Buffer Overflow (Metasploit) EDB-40805 · remote · Nov 21, 2016 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 40805 exploit
- VU#677427 third-party-advisory
- 94130 vdb-entry
- 20161107 [CVE-2016-6563 / VU#677427]: Dlink DIR routers HNAP Login stack buffer overflow mailing-list