Skip to content
Info disclosure Disclosed report Beginner

GIT Detected

A publicly accessible .git/config file on the nextcloud.com website exposed the Git repository configuration, including the remote repository URL and branch names. An attacker could use this information to learn about the repository structure and potentially combine it with other vulnerabilities.

lulliii Follow

Originally disclosed on HackerOne

  • Triaged in 25 hours
  • Fixed in 3 days
  • Disclosed after 5 days

Hello team, While i was testing nextcloud.com, I've detected GIT repository files. GIT repository files can disclose GIT repository usernames and file lists. While disclosures of this type do not provide direct attack vectors, they can be useful for an attacker when combined with other vulnerabilities discovered within the application.

URL: https://nextcloud.com/wp-content/themes/next/.git/config

Page is showing: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/nextcloud/nextcloud.com.git fetch = +refs/heads/:refs/remotes/origin/ [branch "master"] remote = origin merge = refs/heads/master [branch "pricing"] remote = origin merge = refs/heads/pricing [branch "orderform"] remote = origin merge = refs/heads/orderform

The original report as published on HackerOne, by lulliii. 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 .git directory, which should normally be blocked or removed from the public web root.

Impact

The exposed Git configuration could reveal repository usernames and file lists, which may aid an attacker when combined with other vulnerabilities, but it does not provide a direct attack vector on its own.

What the attacker needed

None

How it was found

  1. The tester visited the nextcloud.com website.
  2. They found a .git/config file accessible at a specific URL.
  3. The page displayed the Git configuration contents, including remote URL and branch names.

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 website's source code is often managed with a tool called Git. Sometimes a hidden folder named .git is accidentally left on the web server. If someone can open files inside that folder, they can see details about the code repository, like where it is hosted and what branches exist. This does not directly let them break in, but it gives them clues for further attacks.

What is Info disclosure?

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

More by lulliii

View all

7 more disclosed reports, best first.

More from Nextcloud

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.