Skip to content
Info disclosure Disclosed report Beginner

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

A Git repository was exposed on a public endpoint, allowing an attacker to retrieve source code and Git history. The reporter notes this could reveal sensitive information depending on what is stored.

zevfw5pp Follow

Originally disclosed on HackerOne

  • Disclosed after 4 months

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.

The original report as published on HackerOne, by zevfw5pp. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The access restriction was applied only to the /.git path and not to its subfolders, leaving files such as logs and config reachable.

Impact

An attacker could dump the repository contents and potentially obtain sensitive information, depending on what is stored there.

What the attacker needed

None

The fix

The access rule should be extended to cover all .git subfolders, not just the top-level path.

How it was found

  1. Request the .git directory on the host.
  2. Request files under .git such as logs/HEAD and config to retrieve history and configuration.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A Git repository is the folder where a website's source code and its change history are stored. If that folder is left reachable on the public internet, anyone can download it and read the code. Here the block that was meant to stop this only covered the main folder, not its subfolders.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by zevfw5pp

View all

2 more disclosed reports, best first.

More from Kubernetes

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.