id: arcgis-panel

info:
  name: ArcGIS Enterprise Panel
  author: Podalirius
  severity: info
  description: An ArcGIS instance was discovered.
  reference:
    - https://enterprise.arcgis.com/en/
  classification:
    cwe-id: CWE-200
    cpe: cpe:2.3:a:esri:arcgis_enterprise:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: esri
    product: arcgis_enterprise
  tags: docs,arcgis,cms,panel,esri,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/portal/portalhelp/en/'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'ArcGIS Enterprise'
          - 'Installation and Deployment'
        condition: or

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '&nbsp;([0-9.]+)</span>'

      - type: regex
        part: body
        group: 2
        regex:
          - '(Released Version:</strong>[\n\t ]+(([0-9]+(.[0-9]+)?(.[0-9]+)?)([\n\t
            ]+\([A-Za-z]+[\t ]+20[0-9][0-9]\))?))'
# digest: 4b0a00483046022100fc3aa2607b52d6612c320a8229b3b7ff70f2176f32f763ca73cab106cb7aacbb022100b7dbffd8ce02a158715b416db9f2d1f9178aeeafdac80978f15b056b7800c417:922c64590222798bb761d5b6d8e72950