Description
Git metadata directory (.git) was found in this folder. An attacker can extract sensitive information by requesting the hidden metadata directory that version control tool Git creates. The metadata directories are used for development purposes to keep track of development changes to a set of source code before it is committed back to a central repository (and vice-versa). When code is rolled to a live server from a repository, it is supposed to be done as an export rather than as a local working copy, and hence this problem.
Remediation
Remove these files from production systems or restrict access to the .git directory. To deny access to all the .git folders you need to add the following lines in the appropriate context (either global config, or vhost/directory, or from .htaccess):
<Directory ~ "\.git">
Order allow,deny
Deny from all
</Directory>
References
Related Vulnerabilities
WordPress Plugin SKU Shortlink For WooCommerce Arbitrary File Disclosure (1.3.4)
SharePoint exposed web services
WordPress Plugin Sell Downloads Arbitrary File Disclosure (1.0.17)
WordPress Plugin WP Hide & Security Enhancer Arbitrary File Download (1.3.9.2)
WordPress Plugin Product Input Fields for WooCommerce Arbitrary File Download (1.2.6)