Description
D-Link DIR-859 1.05 and 1.06B01 Beta01 devices allow remote attackers to execute arbitrary OS commands via a urn: to the M-SEARCH method in ssdpcgi() in /htdocs/cgibin, because HTTP_ST is mishandled. The value of the urn: service/device is checked with the strstr function, which allows an attacker to concatenate arbitrary commands separated by shell metacharacters.
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 2 modules
-
D-Link Unauthenticated Remote Command Execution using UPnP via a special crafted M-SEARCH packet.
exploit/linux/upnp/dlink_upnp_msearch_exec
-
D-Link Devices Unauthenticated Remote Command Execution in ssdpcgi
exploit/linux/upnp/dlink_dir859_exec_ssdpcgi
Exploit-DB 1
- D-Link Devices - Unauthenticated Remote Command Execution in ssdpcgi (Metasploit) EDB-48037 · remote · Feb 10, 2020 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10147
- https://medium.com/%40s1kr10s/d-link-dir-859-unauthenticated-rce-in-ssdpcgi-http-st-cve-2019-20215-en-2e799acb8a73
- http://packetstormsecurity.com/files/156250/D-Link-ssdpcgi-Unauthenticated-Remote-Command-Execution.html