id: prometheus-promtail

info:
  name: Prometheus Promtail - Exposure
  author: irshad ahamed
  severity: medium
  description: |
    Prometheus Promtail is an agent that gathers log data from various sources, such as files or systemd journal.
  reference:
    - https://grafana.com/docs/loki/latest/clients/promtail/
    - https://github.com/grafana/loki/issues/8680
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:932345713
  tags: misconfig,prometheus,promtail,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/service-discovery"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '>Promtail</a>'
          - 'https://github.com/grafana/loki'
        condition: and

      - type: status
        status:
          - 200

# digest: 4b0a00483046022100f8264326576ca4f60cc992ef6732a6b2379af8dafc26368b7255a966e41f9949022100922823d7c740798e9595c7d6c27c71fd5096498c32bddb5b2f90d6aea56e50d6:922c64590222798bb761d5b6d8e72950
