Skip to content
Info disclosure Disclosed report Beginner

.git file accessible

The .git configuration file was publicly accessible on a WordPress blog, exposing repository metadata. An attacker could use this information to learn usernames and file lists, which might aid in further attacks when combined with other vulnerabilities.

nitrozeus0x01 Follow

Originally disclosed on HackerOne

  • Disclosed after 10 days

Hi, Your .git file accessible. Thats information disclosure. URL: https://blog.makerdao.com/wp-content/themes/makerDAO/.git/config

REQUEST: GET /wp-content/themes/makerDAO/.git/config HTTP/1.1 Host: blog.makerdao.com Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: en-us,en;q=0.5 Cache-Control: no-cache Cookie: __cfduid=dc0c2f50dd600bfac5f4cb2fee9380e181567508867; wordpress_test_cookie=WP+Cookie+check; pll_language=en Referer: https://blog.makerdao.com/wp-content/themes/makerDAO/.git/config User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

REGARDS.

Impact

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.

Attachments

git.png
git.png From the original on HackerOne

The original report as published on HackerOne, by nitrozeus0x01. 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

Impact

This could disclose repository usernames and file lists, which may be useful to an attacker when combined with other vulnerabilities, though it does not provide a direct attack vector.

What the attacker needed

None

How it was found

  1. Send a GET request to the .git/config file path on the target domain.
  2. Observe that the file is returned, confirming public access.

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 .git folder is like a hidden blueprint of the site's code. If it's left open, anyone can read it and learn about the site's structure and sometimes usernames. This doesn't directly let someone break in, but it gives them clues for other attacks.

What is Info disclosure?

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

More from BlockDev Sp. Z o.o

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.