HexBrain

Kubernetes · Report #970520

exposed Git Repo at http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io/.git/

Duplicatestatus
highseverity
2upvotes
7 Jan 2021disclosed

How it was found

Dear Security team,

If this report is out of scope, please let me know and I will close the report myself

I found a git repository on http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io/.git/.git. This endpoint allows an attacker to retrieve much of the source code and git history for this service which could potentially reveal sensitive information, it all depends what is stored there.

Example: http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io/.git/logs/HEAD http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io/.git/config Mitigation The restrict access (403 forbidden) are enabled only on /.git and not their subfolders. You just need to add all the git subfolders to the same rule.

Best Regards, Daniel

Impact

An attacker can get information just dumping data using .git repository.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original