Skip to content
Leaked secrets Disclosed report Beginner

private keys exposed on the GitHub repository

Private RSA and server keys were exposed in a public GitHub repository. An attacker could use these keys to gain unauthorised access to servers that rely on them.

r0m50 Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Disclosed after 5 months

Summary:

When I searched Github for sensitive information I found some privet key in GitHub repository. these are private RSA key and private server key, which could be used for unauthorized access.

Steps To Reproduce:

VISIT THESE LINKS: Repository : EX: https://github.com/mcu-tools/mcuboot/blob/137d79717764ed32d5da4b4b301f32f81b2bf40f/enc-x25519-priv.pem https://github.com/mcu-tools/mcuboot/blob/137d79717764ed32d5da4b4b301f32f81b2bf40f/root-ed25519.pem (This is just an example) This is the link that contains it all privet key :- https://github.com/mcu-tools/mcuboot/search?p=1&q=extension%3Apem+private

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

privet_key.png
privet_key.png From the original on HackerOne

The original report as published on HackerOne, by r0m50. 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, private key files were accidentally committed to a public GitHub repository.

Impact

Private keys are leaked, and all servers using these keys could be compromised.

What the attacker needed

Public GitHub repository; private keys committed to repo

How it was found

  1. Search GitHub for sensitive information.
  2. Find private key files in a public repository.
  3. Visit the repository links to view the exposed keys.

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 like a secret password that proves a server's identity. If it is left in a public place, anyone can copy it and pretend to be that server, potentially breaking into systems that trust it.

What is Leaked secrets?

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

More from MCUboot

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.