id: cisco-servicegrid

info:
  name: Cisco ServiceGrid Login Panel - Detect
  author: dhiyaneshDK
  severity: info
  description: Cisco ServiceGrid login 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
  metadata:
    max-request: 1
    shodan-query: http.title:"Cisco ServiceGrid"
  tags: panel,cisco,servicegrid,eol,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/pages/sdcall/Login.jsp'

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '(?m)^<title>Cisco ServiceGrid (.*)<\/title>$'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<div class="top\-margin">Version ([0-9.]+)<\/div>'
# digest: 490a00463044022045e4a65ff9fc6760ee89027bce7fe16c4bc29a517e2e17ace15d7891b33c244602202504b349d255f86e1c745f269e5d7d5eadf77272cdf10423edfbbb88124d686f:922c64590222798bb761d5b6d8e72950