Skip to content
Info disclosure Write-up Beginner

Email Disclosure via .git Config in project: $500 Bounty Bug

The .git/config file of public or shared projects on ExaHub was readable by other users, exposing the project owner's email address. An attacker could harvest these emails at scale for phishing or social engineering.

medium.com

Published on medium.com

Hey Everyone! I’m excited to share a vulnerability I recently discovered a sensitive information disclosure vulnerability in ExaHub that exposed project owners’ email addresses via the .git/config file.

Abhi Sharma, on 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, the platform's access control did not block direct access to the .git directory, so the configuration file inside it was served to any user who could view the project.

Impact

Exposed email addresses could be harvested at scale and used for phishing, social engineering, or unauthorised contact, which is a privacy violation.

What the attacker needed

A free account; access to a public or shared project

The fix

Access to .git folders should be restricted, and emails in public .git/config files should be redacted or replaced with placeholders.

How it was found

  1. Log in and open a public project or one shared with you.
  2. Open the .git folder inside the project directory.
  3. Open the .git/config file.
  4. Read the owner's email address in the [user] section.

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.

Every Git project has a hidden folder called .git that stores settings, including the name and email of the person who set it up. On this platform, other users could open that settings file in a public project and see the owner's email address. That email could then be used to send convincing fake messages.

What is Info disclosure?

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

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.