id: mongodb-exporter-metrics

info:
  name: MongoDB Exporter - Detect
  author: pussycat0x
  severity: medium
  description: MongoDB exporter was detected.
  reference:
    - https://github.com/percona/mongodb_exporter
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"MongoDB exporter"
  tags: mongodb,exposure,debug,misconfig,vuln

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

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

      - type: word
        part: body
        words:
          - "mongodb"
          - "mongodb_exporter_build_info"
        condition: or

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