id: bmc-discovery-panel

info:
  name: BMC Discovery Login Panel - Detect
  author: daffainfo
  severity: info
  description: BMC Discovery login panel was detected.
  reference:
    - https://docs.bmc.com/docs/discovery/documentation-home-1098837931.html
  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:
    verified: true
    max-request: 1
    shodan-query: http.title:"BMC Software"
  tags: panel,bmc

http:
  - method: GET
    path:
      - "{{BaseURL}}/ui/"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "BMC Discovery:"
          - '<span class="logo-product">Discovery</span>'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<span class="logo-version">Version ([0-9.]+)'
# digest: 4a0a00473045022100cbca950e28405ec3856a40263d67d025d78bc95ab231dcbc1ce76cbcc96039cb022052e213cdaeae2ea9b8a81f858e639a5b407887e632faafbac244f12f206bcea4:922c64590222798bb761d5b6d8e72950