Skip to content
Info disclosure Disclosed report Beginner

Git repository found

A web server exposed its .git directory, allowing anyone to download the repository contents. An attacker could obtain source code and any secrets or credentials stored in it.

tefa_ Follow

Originally disclosed on HackerOne

  • Disclosed after 6 months

Summary:

Hello team , When i research I found domain vuln to downliad git repository and i will explain that.

Steps To Reproduce:

  1. Add DotGit extention on your browser
  2. Now try to access to that domain https://curl.dev/
  3. You will show that extention is alert and can download that bucket.

Impact

Summary:

The exposure of the /.git directory can lead to unauthorized access to sensitive information, such as source code, configuration files, and potentially secrets or credentials stored in the repository.

The original report as published on HackerOne, by tefa_. 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 the web server was misconfigured to serve the hidden .git directory instead of blocking access to it.

Impact

An attacker could download the repository and potentially obtain source code, configuration files, and secrets or credentials stored in it.

What the attacker needed

None

The fix

The text does not state a fix; blocking access to .git would address the exposure.

How it was found

  1. Install a browser extension that detects .git folders.
  2. Visit the affected domain in the browser.
  3. The extension alerts that the .git folder is accessible and can be downloaded.

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.

When developers use Git to track code changes, a hidden folder called .git sits on the server. If the web server serves that folder to visitors, anyone can download the project's history and files. This report says that happened here, so source code and possibly passwords could leak.

What is Info disclosure?

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

More by tefa_

View all

2 more disclosed reports, best first.

More from curl

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.