Skip to content
Info disclosure Write-up Intermediate

How I Found a Critical Log Exposure in Workpay’s Infrastructure

Hardcoded credentials for a Grafana Loki log aggregation instance were found in a publicly served JavaScript bundle, allowing unauthenticated access to production logs containing PII and active JWT tokens. An attacker could use these tokens for account takeover.

himxch Follow

Published on medium.com

During a routine recon session on Workpay’s public-facing assets, I stumbled across a subdomain that turned out to be one of the more impactful findings I’ve reported this year. What started as a curious exposed API documentation page led me to a live Grafana Loki log aggregation instance — with hardcoded credentials…

Himxch, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely two mistakes: secrets were embedded in client-side JavaScript, and a production log aggregator was exposed to the internet.

Impact

An attacker could read production logs containing full user PII and active admin-level JWT tokens valid for 7+ days, sufficient for full account takeover.

What the attacker needed

Internet access to the target; No account needed

The fix

The vulnerability was fixed; recommended remediation included rotating credentials, removing Loki from public internet access, auditing JS bundles for secrets, implementing secret scanning in CI/CD, and reducing log verbosity.

How it was found

  1. Enumerate subdomains and find an exposed API documentation page.
  2. Discover a Loki instance at a subdomain that returns 401.
  3. Search frontend JavaScript bundles and find hardcoded Basic auth credentials for Loki.
  4. Use the credentials to send a GET request to the Loki labels endpoint and receive a 200 OK response.
  5. Query log streams and observe production logs with PII and active JWT tokens.

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 write-up has not been written yet. The Original tab links to the source.

A company left the username and password for its log storage system inside a file that anyone can download from its website. Because the log system was also reachable from the internet, anyone who found those credentials could read sensitive user data and login tokens.

What is Info disclosure?

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

More by himxch

View all

1 more disclosed report, best first.

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.