Skip to content
Leaked secrets Disclosed report Beginner

sentry Auth Token exposed publicly in docker hub image

A Sentry authentication token was embedded in a publicly available Docker Hub image, and the token remained active. An attacker could use the token to access the Sentry API and view application logs, which may contain sensitive information and PII.

ghaazy Follow

Originally disclosed on HackerOne

Informational View original
  • Fixed in 16 hours
  • Paid in 9 days
  • Disclosed after 7 months

Summary:

Hi during my recon I found Sentry token which belongs to taskcluster The token is still active.

Steps

  1. Go to https://hub.docker.com/r/taskcluster/taskcluster/tags
  2. pull these images tags v15.0.0-20-g0eca18b7c and c061025dc and ba7958766 and v16.2.0-77-gd8577f62a may be this exist in more tags
  3. You will see this token 5841673fc43843db98088d579568271bcee388b21d91455b9c1fb151bab260b9 in /app/node_modules/sentry-api/test.js
  4. Try using the token with below curl request

curl -X GET -H "Authorization: Bearer 5841673fc43843db98088d579568271bcee388b21d91455b9c1fb151bab260b9" https://sentry.io/api/0/projects/

  1. You will see api response.
image.png
image.png From the original on HackerOne

Supporting Material/References:

Impact

Summary:

Sentry exposes logs of the application which can contain sensitive information and PII. This is basic impact. But sentry contains application logs it can be used to find more vulnerabilities in the code base

The original report as published on HackerOne, by ghaazy. 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

Impact

The token could allow an attacker to read application logs that may contain sensitive information and PII, and potentially find more vulnerabilities.

What the attacker needed

Public Docker Hub image; no authentication needed to pull image

The fix

The token should be revoked and removed from the image.

How it was found

  1. Go to the Docker Hub tags page for the taskcluster repository.
  2. Pull the listed image tags.
  3. Find the token in the test file inside the image.
  4. Use the token in an API request to Sentry.
  5. Observe the API response.

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.

A secret token used to access a logging service was accidentally left inside a public software container. Anyone who downloaded that container could find the token and use it to read the service's logs, which might include private data.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by ghaazy

View all

3 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.