id: prometheus-log

info:
  name: Exposed Prometheus
  author: dhiyaneshDK,thevillagehacker
  severity: low
  description: Prometheus instance is exposed.
  metadata:
    max-request: 3
  tags: prometheus,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/prometheus"
      - "{{BaseURL}}/actuator/prometheus"
      - "{{BaseURL}}/actuator/prometheus;%2f..%2f..%2f"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'gateway_request_total'
          - 'logback_events_total'
        condition: or

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