Skip to content
Info disclosure Disclosed report Beginner

Plaintext storage of a password on kubernetes release bucket

A publicly readable Kubernetes release bucket contained a build artefact with an rsync password stored in plaintext. An attacker who found it could use the leaked password together with the username in the accompanying script to access environments that used that build.

riramar Follow

Originally disclosed on HackerOne

  • Disclosed after 8 months

Report Submission Form

Summary:

During my recon I found these two buckets dl.k8s.io and dl.kubernetes.io which actually redirects to https://storage.googleapis.com/kubernetes-release/. By searching the string "password" under https://storage.googleapis.com/kubernetes-release/ I found a file called rsyncd.password (https://storage.googleapis.com/kubernetes-release/archive/anago-v1.10.0-alpha.1/k8s.io/kubernetes/_output-v1.10.0-alpha.1/images/kube-build:build-734df85a63-5-v1.9.2-1/rsyncd.password) where the password "VmvrL2DyKbJB5jb5EkNfqYPpmLBf0LjS" is stored in plaintext.

1.png
1.png From the original on HackerOne
2.png
2.png

This password is used in this script https://storage.googleapis.com/kubernetes-release/archive/anago-v1.10.0-alpha.1/k8s.io/kubernetes/_output-v1.10.0-alpha.1/images/kube-build:build-734df85a63-5-v1.9.2-1/rsyncd.sh. The script rsyncd.sh is used to set up and run rsyncd to allow data to move into and out of our dockerized build system.

3.png
3.png From the original on HackerOne

From the github repo https://github.com/kubernetes/release we can see what is anago where this password was found.

4.png
4.png From the original on HackerOne

Fix:

Delete the file https://storage.googleapis.com/kubernetes-release/archive/anago-v1.10.0-alpha.1/k8s.io/kubernetes/_output-v1.10.0-alpha.1/images/kube-build:build-734df85a63-5-v1.9.2-1/rsyncd.password.

Impact

Storing password in plaintext in a public bucket on the web is a security bad practice. People that used or still using the anago-v1.10.0-alpha.1 could have their environment compromised if an attacker use this leaked password and the username k8s defined here https://storage.googleapis.com/kubernetes-release/archive/anago-v1.10.0-alpha.1/k8s.io/kubernetes/_output-v1.10.0-alpha.1/images/kube-build:build-734df85a63-5-v1.9.2-1/rsyncd.sh.

The original report as published on HackerOne, by riramar. 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 a build script wrote a credentials file into the published output directory, and the storage bucket allowed public listing and reading.

Impact

Anyone who used or still uses that build could have their environment compromised if an attacker combines the leaked password with the username from the script.

What the attacker needed

Publicly listable storage bucket; no account needed

The fix

The report asks for the exposed password file to be deleted from the bucket.

How it was found

  1. Find the release buckets and follow the redirect to the public storage bucket.
  2. Search the bucket contents for the string password.
  3. Open the matching file and read the plaintext password.
  4. Read the companion script to learn the matching username.

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 published build output folder contained a file with a password in readable form, and the bucket was publicly accessible. Anyone who browsed it could read the password and try it against the service it belongs to.

What is Info disclosure?

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

More by riramar

View all

3 more disclosed reports, best first.

More from Kubernetes

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.