id: cisco-sendgrid

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