id: pulse-secure-version

info:
  name: Pulse Secure Version
  author: dadevel
  severity: info
  classification:
    cpe: cpe:2.3:a:pulsesecure:pulse_connect_secure:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: pulsesecure
    product: pulse_connect_secure
    shodan-query: cpe:"cpe:2.3:a:pulsesecure:pulse_connect_secure"
  tags: pulse,panel,pulsesecure,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/dana-na/nc/nc_gina_ver.txt" # not present in newer release
      - "{{BaseURL}}/dana-cached/hc/HostCheckerInstaller.osx"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - 'NAME="ProductVersion"'
          - "<key>version</key>"
        condition: or
        case-insensitive: true

    extractors:
      - type: regex
        group: 1
        part: body
        regex:
          - '(?i)NAME="ProductVersion"\s+?VALUE="([^"]+)"'

      - type: regex
        group: 1
        part: body
        regex:
          - "(?i)<string>([^<]+)</string>"
# digest: 490a0046304402201282d22d30af15552f89a89103d1b3d091faadf9538597c6dc94b07dd481542202207b81b9be2e757815a3c18a91b988a4baa2d910f78ae6bbb9c07720376b1bcbd0:922c64590222798bb761d5b6d8e72950