Skip to content
Info disclosure Disclosed report Beginner

Private RSA key and Server key exposed on the GitHub repository

Private RSA and server keys were committed to a public Kubernetes GitHub repository. An attacker who found them could use them for unauthorised access to servers relying on those keys.

njaysec Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Disclosed after 5 months

Report Submission Form

Summary:

I was searching for sensitive data in Kubernetes repository where I found these private keys. These are private RSA key and private server key, which could be used for unauthorized access.

Steps To Reproduce:

VISIT THESE LINKS

Repository : kubernetes / kubernetes

https://github.com/kubernetes/kubernetes/blob/ce3ddcd5f691b5777e7b2f4d89cac1da316970b4/staging/src/k8s.io/legacy-cloud-providers/vsphere/vclib/fixtures/ca.key

https://github.com/kubernetes/kubernetes/blob/ce3ddcd5f691b5777e7b2f4d89cac1da316970b4/staging/src/k8s.io/legacy-cloud-providers/vsphere/vclib/fixtures/server.key

Supporting Material/References:

https://hackerone.com/reports/50170 https://hackerone.com/reports/638401

Impact

1).Private key leakage 2). All of the servers using this key will be compromised

Attachments

kub1.png
kub1.png From the original on HackerOne
kub2.png
kub2.png

The original report as published on HackerOne, by njaysec. 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 test fixture keys were committed to a public source repository without being treated as sensitive.

Impact

The reporter claims all servers using this key could be compromised, though the text does not show that the keys are used in production.

What the attacker needed

Public repository access

How it was found

  1. Visit the linked file in the Kubernetes repository.
  2. Observe the private key material exposed in the file.

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 private key is a secret used to prove identity in encrypted connections. If it is published, someone else could use it for unauthorised access. Here the keys were left in a public code repository.

What is Info disclosure?

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

More by njaysec

View all

2 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.