id: postgres-exporter-metrics

info:
  name: Postgres Exporter Metrics
  author: DhiyaneshDk
  severity: low
  description: Postgres Exporter Metrics is exposed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Postgres exporter"
  tags: postgres,exposure,debug,misconfig

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

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

      - type: status
        status:
          - 200
# digest: 490a00463044022074ed93d89200b81bf3b67874490f6a474f1c3499c17c783a67669a1aff4d96af0220798a0bc25a9a10040a85d28f7046a4eaaf6d232de5e79fa3e4b9b7b5db7b1dfa:922c64590222798bb761d5b6d8e72950