Skip to content
Info disclosure Disclosed report Beginner

Publicly accessible Grafana install allows pivoting to Prometheus datasource

A publicly accessible Grafana instance exposed its dashboards and an unrestricted Prometheus datasource proxy. An attacker could query the proxy to retrieve sensitive network and device data and send resource-intensive queries that could cause a denial of service.

gnarlygoat Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • Fixed in 26 days
  • Disclosed after 5 months

Summary: A publicly accessible Grafana install exposes semi sensitive Dashboards. This also exposes the Prometheus proxied datasources which allow direct queries to a Prometheus instance which reveals sensitive data an opens the instance up to potential DoS via crafted requests.

Description:

Impact

Medium-Low

Step-by-step Reproduction Instructions

  1. Grafana instance - https://████████/stats/
  2. Example semi sensitive dashboard: https://████████/stats/d/███/
  3. This dashboard reveals an unrestricted Prometheus proxy API at https://███/stats/api/datasources/proxy/1/api/v1/
  4. This API can be queried in many ways to include resource intensive queries which could result in a DoS. An example of exposed datasets:

https://██████/stats/api/datasources/proxy/1/api/v1/label/name/values. A query crafted to require high resource usage would result in a denial of service. 5. This can reveal much more sensitive data as well such as internal ip addresess assigned to interfaces https://████/stats/api/datasources/proxy/1/api/v1/query?query=node_network_address_assign_type

or

curl -s 'https://██████/stats/api/datasources/proxy/1/api/v1/query?query=node_network_address_assign_type' | python2 -c "import sys, json; print json.load(sys.stdin)['data']['result'][0]" (Ip addresses are in decimal)

Product, Version, and Configuration (If applicable)

Grafana v6.4.4

Suggested Mitigation/Remediation Actions

Implement controls to disallow public access

Impact

Denial of Service Utilize exposed network and device data for network reconnaissance

The original report as published on HackerOne, by gnarlygoat. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Grafana instance was deployed without authentication or access controls, leaving its dashboards and proxied Prometheus datasource publicly reachable.

Impact

An attacker could cause a denial of service through resource-intensive queries and use exposed network and device data for reconnaissance.

What the attacker needed

Grafana instance publicly accessible

How it was found

  1. Access the publicly reachable Grafana instance.
  2. Open a semi-sensitive dashboard.
  3. Use the dashboard to reach the unrestricted Prometheus proxy API.
  4. Query the proxy to list exposed datasets or run resource-intensive queries.
  5. Query the proxy for network interface data to obtain internal IP addresses.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Grafana is a tool for making charts from data, and it can connect to a database called Prometheus. If the Grafana page is open to anyone on the internet, anyone can use that connection to ask Prometheus questions directly. That can leak private information about the network and even overload the system so it stops working.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.