Skip to content
Info disclosure Write-up Intermediate

Accessing Employee GitHub SSH Key

A private SSH key belonging to a former employee was publicly accessible at a predictable URL path. An attacker could download the key and use it to authenticate to GitHub as that employee, though the company stated the key had been revoked.

ghostman01 Follow

Published on ghostman01.medium.com

Hope my article are simple and understandable for you, even if you’re a beginner. The title has already let you know what’s the finding of the write-up.

SIDDHANT SHUKLA, on ghostman01.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a sensitive file (a private SSH key) was stored in a web-accessible directory without proper access controls.

Impact

An attacker could authenticate to GitHub as the employee, but the company stated the key belonged to a former employee and had been revoked, so no production access remained.

What the attacker needed

Knowledge of directory names; no authentication required

The fix

The company should ensure sensitive files like private keys are never stored in web-accessible directories and should revoke any 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 write-up has not been written yet. The Original tab links to the source.

A private SSH key is like a password that proves your identity to a server. Here, the key was left in a folder that anyone could reach by guessing the web address. The finder downloaded it and used it to log in to GitHub as the employee, but the company said the key was already revoked.

What is Info disclosure?

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

More by ghostman01

View all

3 more disclosed reports, best first.

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.