id: zyxel-firewall-panel

info:
  name: Zyxel Firewall Panel - Detect
  author: 0x240x23elu
  severity: info
  description: Zyxel Firewall panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:o:zyxel:zywall_vpn50_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-440644339
    product: zywall_vpn50_firmware
    vendor: zyxel
  tags: panel,xyxel,firewall

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "/lib/mode_ana"

      - type: word
        part: body
        words:
          - "VPN"
          - "USG"
          - "ATP"
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "<title>(.*)</title>"
# digest: 4b0a00483046022100d9ccfce0ae36e9ff3e9c711f7d3ecbe8a16472e11fe77f0e60a35d5ab17c2285022100fa81b300111f5f2a9a629b75c2551b6b0b00199070335e70c1c475a45654d7b0:922c64590222798bb761d5b6d8e72950