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

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: 4a0a00473045022100cf5d2d07bfcdbe5740c6d5afd842cee99dd6f336b9cfd063cfe092293d8ced3d022007f3d274624942af9a08b3b2aa830781a853cc1dd2648a4e7d409c1ab6daa333:922c64590222798bb761d5b6d8e72950