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

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: 4a0a00473045022100e57590eb9da31c5aba9f2c71f4ac7aa90073884e15d0637e7b1541c2a953083c02205fc6ac17f2cd60b5177e839f18af158f338e2d4350c92f0a85de7fd034735ae5:922c64590222798bb761d5b6d8e72950