Skip to content
Info disclosure Write-up Beginner

404 Not Found to Google cloud service account credentials disclosure!

A Google Cloud service account credentials file was publicly accessible at a predictable path on a subdomain, allowing an attacker to obtain the private key and generate an access token. However, the token did not grant access to any sensitive data.

kumarmohank889 Follow

Published on kumarmohank889.medium.com

Hi H4ckers, While scrolling through LinkedIn posts, I got a target to hunt and their reward is coupons ( 3.5k INR, IYKYK ) using which we can buy their own products. This is a very short and quick write-up on how I got access to their google Cloud service account credentials.

Mohan Kumar N, on kumarmohank889.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 a sensitive credentials file was placed in a publicly accessible web directory without access controls.

Impact

The credentials could be used to generate an access token, but the token did not allow access to any sensitive data.

What the attacker needed

Publicly accessible credentials file; no authentication required

The fix

The issue was fixed according to the timeline.

How it was found

  1. Enumerate subdomains and identify a 403 subdomain that appears internal.
  2. Run directory brute force on the subdomain.
  3. Discover the /credentials.json endpoint and view its response.
  4. Validate the credentials using Keyhacks and generate an access token with gcloud CLI.

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 service account is a special account used by applications to access cloud services. The private key for such an account was left in a file that anyone could download, so the researcher could create a temporary access token. But that token did not let them read or change any important data.

What is Info disclosure?

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

More by kumarmohank889

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.