ADVERTISEMENT

French rugby club leaks source code

Prestigious club Stade Français potentially endangered its fans for over a year after leaking its website’s source code.

Stade Francais Rugby Club

Romain Biard / Shutterstock.com

Paulina Okunytė
Paulina Okunytė Senior Journalist
January 24, 2023 Updated: January 25, 2023 2 min read
screenshot of Guidus code leak
Client ID is left in the code that allows unauthorized threat actors to craft authorized requests to admin related endpoints

Serious security risks

ADVERTISEMENT
screenshot of Guidus code leak
Git configuration file shows all the different working branches of the repository

Millions of .git folders accessible to public

.git map

How to secure .git folders?

  • The .git directory should always be hidden and not accessible to third parties. As many free-to-use tools and methods are available that obtain access to the repositories through leaked .git directories, it is essential to follow all security protocols inside and outside the repository.
  • The .git directory is not intended to be uploaded online. One way it might end up on the web is when developers accidentally upload the whole application directory and therefore include .git, which might not always be visible in the file explorers. Checking a directory tree after each deployment should be on everyone's checklist.
  • It is advisable to use the .gitignore file, which tells Git which files to ignore when committing your project to the GitHub repository. Such practice could save sensitive data from being exposed to the public by accident.
ADVERTISEMENT