Skip to content

Grafana API Key

ID: grafana-key

Severity: info

Author: DhiyaneshDK

Tags: grafana,exposure,tokens

id: grafana-key
info:
name: Grafana API Key
author: DhiyaneshDK
severity: info
reference:
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/grafana-api-key.yaml
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/grafana-api-key.go
metadata:
verified: true
max-request: 1
tags: grafana,exposure,tokens
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- (?i)\b(eyJrIjoi[A-Za-z0-9]{70,400}={0,2})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4a0a00473045022100e16fcfb3d5f38ba05dd37ce67bd2b409a4cbf4f98b83ab9aec90a0eb813629ae02206320794eac204147394b11162f03c65269987669a50803b55287986aab20d8ec:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/tokens/grafana/grafana-key.yaml"

View on Github