id: cyberoam-ssl-vpn-panel

info:
  name: Cyberoam SSL VPN Panel - Detect
  author: idealphase
  severity: info
  description: Cyberoam SSL VPN panel was detected.
  reference:
    - https://docs.sophos.com/nsg/Cyberoam/Version%2010.x/10.6.3/Guides/Cyberoam%20SSL%20VPN%20User%20Guide.pdf
  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:h:sophos:cyberoam:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sophos
    product: cyberoam
    shodan-query:
      - title:"Cyberoam SSL VPN Portal"
      - http.title:"cyberoam ssl vpn portal"
    google-query:
      - intitle:"Cyberoam SSL VPN Portal"
      - intitle:"cyberoam ssl vpn portal"
    fofa-query: title="cyberoam ssl vpn portal"
  tags: panel,cyberoam,vpn,sophos,discovery

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>Cyberoam SSL VPN Portal</title>"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - 'src="\/javascript\/validation\/sslvpnlogin\.js\?version=(.+)" ><\/script>'
# digest: 4a0a0047304502205450378c8939ebf7652a6ebff028b08082c332b16e10d17a75cd60af2350dfd00221008ef97ae3c64cd32ec77f9b30c84e793b254dd331f838db729c034982b846ceec:922c64590222798bb761d5b6d8e72950