Secrets & Exposure
critical Severity
Free Check
Version Control Exposure (.git, .svn, .hg)
Tests for exposed /.git/HEAD, /.svn/entries, and repository metadata allowing complete source code reconstruction.
Why It Matters
Attackers can read commit histories, developer comments, and cryptographic secrets committed in past commits.
How We Check This
We request /.git/HEAD and verify if the response starts with ref: refs/heads/.
How to Fix & Implement
Copy-paste configuration blocks tailored for your web server or edge proxy.
nginx snippet
location ~ /.git { deny all; return 404; }Frequently Asked Questions
Why do .git folders end up on production servers?
Deploying by running git pull directly on the server without removing the .git folder or configuring web server blocks.