HexBrain

Sifchain · Report #1183502

Private RSA key for Vagrant exposed in GitHub repository

Informativestatus
7upvotes
7 May 2021disclosed

How it was found

Summary:

The private RSA key used for SSH on Vagrant is exposed in sifnode GitHub repository.

Steps To Reproduce:

  1. Visit this link which shows the private_key file used for your Vagrant virtual machine

Suggested solution

Remove the private key from the repository. Even though you remove it, it will still be in the commit history. Therefore, refer to the article by GitHub on removing sensitive data from a repository

Impact

By having the private SSH key published onto your GitHub repo, an attacker would be able to access your Vagrant virtual machine pretending to be you. The private key has the word "private" for reason and therefore it shouldn't be accessible by unauthorized people.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original