Hexret

Web Security · HTTP and hosting

Git metadata exposure

Public access to a site's .git files, such as HEAD, refs, or objects. Reachable objects may let someone reconstruct source or history, including retained secrets. A reachable HEAD alone does not prove full reconstruction. Keep repository metadata outside the document root and block these paths at the server.

Where you practice it

Related terms