Skip to content
Info disclosure Write-up Beginner

NotGitBleed

Developers sometimes accidentally entered their GitHub username and password into the author name and email fields of their Git configuration, causing those credentials to be stored in commit metadata. An attacker who found such commits could use the leaked credentials to access or modify repositories.

Aaron Devaney Follow

Published on notgitbleed.com

Due to configuration errors or human error, significant numbers of people may have accidentally checked GitHub credentials into GitHub commits as metadata, most commonly a username as the author name and a password in the email address field. We estimate in the region of 50,000 to 100,0001 user credentials may have…

Aaron Devaney, on notgitbleed.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 user error: developers entered their login credentials into the Git author name and email fields, often because an IDE prompt resembled a login screen, and those values were then saved in commit metadata.

Impact

Leaked credentials could allow an attacker to access or modify repositories, and because many people reuse passwords, the risk could extend to other services; GitHub has since implemented automatic revocation of detected credentials, but some risks remain for self-hosted instances and external identity providers.

What the attacker needed

Developer enters credentials in Git config; commits are pushed to a public repository

The fix

GitHub has rolled out automatic scanning and revocation of credentials found in commit metadata, and users should check their Git configuration, rotate any exposed credentials, and enable multi-factor authentication.

How it was found

  1. A developer sets up an IDE or Git and is prompted for an author name and email address.
  2. The developer enters their GitHub username as the author name and their password as the email address.
  3. The credentials are saved in the Git configuration and included in every commit made from that machine.
  4. The commits are pushed to GitHub, exposing the credentials in the commit metadata.

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.

When you make a commit in Git, it records who made it using a name and email address. Some people mistakenly typed their GitHub username and password into those fields, so the password was saved in the commit history. Anyone who looked at that history could see the password and use it to log in to GitHub.

What is Info disclosure?

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

More from GitHub

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.