Path traversal in gitolite - CVE-2012-4506
Published: October 23, 2012 / Updated: August 11, 2020
gitolite
Detailed vulnerability description
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when processing directory traversal sequences in gitolite 3.x before 3.1, when wild card repositories and a pattern matching "./" are enabled,. A remote authenticated attacker can send a specially crafted HTTP request and remote authenticated users to create arbitrary repositories and possibly perform other actions via a . (dot dot) in a repository name.
How to mitigate CVE-2012-4506
Sources
- http://secunia.com/advisories/50896
- http://www.openwall.com/lists/oss-security/2012/10/10/1
- http://www.openwall.com/lists/oss-security/2012/10/10/2
- http://www.securityfocus.com/bid/55853
- https://exchange.xforce.ibmcloud.com/vulnerabilities/79130
- https://github.com/sitaramc/gitolite/commit/f636ce3ba3e340569b26d1e47b9d9b62dd8a3bf2
- https://groups.google.com/forum/#!topic/gitolite/K9SnQNhCQ-0/discussion