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:
    max-request: 1
    shodan-query: http.title:"BMC Software"
    verified: true
  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: 490a0046304402202d14fe97a89572e24a09d0dba0c3f5467f7009a8ca73446b8b5e4863f6eb1a0f02203c72c903fcbb2e6b6ca22b54f4db01537db52401dd6cb789320d9e839bc7a92b:922c64590222798bb761d5b6d8e72950