๐โโฌGit Exposure
Theory
Git is a widely used code versioning tool for application development. It allows developers to always keep an up-to-date copy of the code and to have greater control over changes made.
The danger occurs when the application leaves the โ.gitโ directory, which is in the system root, exposed. By carelessness, an application that uses Git for versioning can expose the โ.gitโ directory.
This directory of source code can contain sensitive information such as API keys, developer comments, AWS keys, and even the password to a systemโs administrative screen and logs of all changes made during development.
Practical
Finding the exposed .git
Downloading .git
Check status
Restore files
Read logs
Read commits
REFERENCES
Last updated