Update unauth-ztp-ping.yaml

patch-1
pussycat0x 2023-05-22 20:58:34 +05:30 committed by GitHub
parent f74e8bd714
commit f998a28e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 10 deletions

View File

@ -1,7 +1,9 @@
id: unauth-ztp-ping id: unauth-ztp-ping
info: info:
name: ZyXEL USG ZTP Lack of Authentication name: Unauthenticated ZyXEL USG ZTP - Detect
author: dmartyn
severity: high
description: | description: |
Make a ZyXEL USG with ZTP support, pre CVE-2023-28771 patch, do a DNS lookup by asking it to make an ICMP request. Make a ZyXEL USG with ZTP support, pre CVE-2023-28771 patch, do a DNS lookup by asking it to make an ICMP request.
This template can be used to detect hosts potentially vulnerable to CVE-2023-28771, CVE-2022-30525, and other issues, without actually exploiting the vulnerability. This template can be used to detect hosts potentially vulnerable to CVE-2023-28771, CVE-2022-30525, and other issues, without actually exploiting the vulnerability.
@ -10,24 +12,32 @@ info:
- https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-remote-command-injection-vulnerability-of-firewalls - https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-remote-command-injection-vulnerability-of-firewalls
metadata: metadata:
verified: "true" verified: "true"
author: dmartyn shodan-query: title:"USG FLEX"
severity: medium tags: misconfig,unauth,zyxel,ztp,rce,oast
tags: misconfig,unauth,zyxel,ztp
requests: http:
- raw: - raw:
- | # try resolve - |
POST /ztp/cgi-bin/handler HTTP/1.1 POST /ztp/cgi-bin/handler HTTP/1.1
Host: {{Hostname}} Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
Content-Type: application/json Content-Type: application/json
Connection: close
{"command":"ping","dest":"{{interactsh-url}}"} {"command":"ping","dest":"{{interactsh-url}}"}
matchers-condition: and
matchers: matchers:
- type: word - type: word
part: interactsh_protocol # Confirms the DNS Interaction part: interactsh_protocol
words: words:
- "dns" - "dns"
- type: word
part: body
words:
- "message"
- "result"
condition: and
- type: status
status:
- 200