Skip to content
Leaked secrets Disclosed report Beginner

Hard coded Username and password in GiHub commit

Hard-coded credentials for the Vagrant tool were found in a public GitHub commit history. An attacker could use these credentials to access the automation tool for setting up virtual machines and potentially escalate further.

njaysec Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 2 months

Report Submission Form

Summary:

I was exploring the GitHub repository and I found some hard coded credentials in the commit history. These credentials are related to Vagrant tool which is used to setup virtual machines environment, This is a very critical disclosure and can lead to bigger damages. So I am informing this to you guys, please let me know what do you guys think.

Steps To Reproduce:

VISIT THESE LINKS Repository : kubernetes /kubernetes Commit Link : https://github.com/kubernetes/kubernetes/commit/5a0159ea00e082bc85bbec18d1ab7ae78d90fa4f Repository Link : https://github.com/kubernetes/kubernetes/blob/5a0159ea00e082bc85bbec18d1ab7ae78d90fa4f/cluster/kubecfg.sh

Supporting Material/References:

Reference: https://hackerone.com/reports/124100

Impact

Vagrant is a tool for building and managing virtual machine environments in a single workflow. This can give hacker access to the hacker to the automation tool to setup VMs and their environment, which he can use for further escalation.

Attachments

kub-cred1.png
kub-cred1.png From the original on HackerOne

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 credentials were committed to the repository and remained in the commit history.

Impact

An attacker could gain access to the Vagrant automation tool and use it for further escalation.

What the attacker needed

Access to the public GitHub repository

How it was found

  1. Visit the provided GitHub commit link.
  2. Visit the provided GitHub repository file link.

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 username and password were left in a public repository's history. Anyone can see them, and an attacker could use them to access the Vagrant tool used to set up virtual machines.

What is Leaked secrets?

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

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.

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.