id: libvirt-exporter-metrics

info:
  name: Libvirt Exporter Metrics
  author: DhiyaneshDk
  severity: low
  description: Libvirt Exporter is leaking metrics.
  classification:
    cpe: cpe:2.3:a:redhat:libvirt:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: redhat
    product: libvirt
    shodan-query: title:"Libvirt"
  tags: libvirt,exposure,debug,misconfig,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "# HELP"
          - "libvirt_"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502204fe7c82ef8d0a11729ebc8036bfa41beb932781642495d672c8e16062270fb6b022100fa3341820ffba61d0a1dcf3b945266ce0099fffa93bf2422ddb30e810315d428:922c64590222798bb761d5b6d8e72950