grafana-loki-api-exposure: Grafana Loki - Unauthenticated API Access

2026-09-01 Unknown PoC Public

Description

Grafana Loki API is accessible without authentication, allowing unauthorized access to log streams.

PoC

id: grafana-loki-api-exposure

info:
  name: Grafana Loki - Unauthenticated API Access
  author: RootKaito
  severity: medium
  description: |
    Grafana Loki API is accessible without authentication, allowing unauthorized access to log streams.
  reference:
    - https://grafana.com/docs/loki/latest/operations/authentication/
    - https://grafana.com/docs/loki/latest/reference/loki-http-api/
  classification:
    cpe: cpe:2.3:a:grafana:loki:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: grafana
    product: loki
  tags: exposure,loki,grafana,unauth,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/loki/api/v1/labels"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"status":"success"'

      - type: status
        status:
          - 200

    extractors:
      - type: json
        name: labels
        json:
          - ".data"
# digest: 4b0a00483046022100b09aed011c41686dd6d94523408db022a0d917664540d65d4567b9afee9dc735022100929e5256db3e90cd313a9ca5f43179c9cbae7e05352867b5595521fca7f7a123:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.