The deploy directory for staging.northwind.app serves its .git folder over HTTP. We reconstructed the full commit history with git-dumper and recovered config/production.env, which contains a live AWS access key pair. The key is valid and maps to an IAM user with s3:* on the production asset bucket, with full read/write to customer data.
GET /.git/config HTTP/2 Host: staging.northwind.app User-Agent: Vulnytics/1.0 (+verify) Accept: */*
HTTP/2 200 OK content-type: application/octet-stream content-length: 322 [core] repositoryformatversion = 0 [remote "origin"] url = git@github.com:northwind/platform.git # git-dumper → config/production.env AWS_ACCESS_KEY_ID=AKIA4XR2...QF7A AWS_SECRET_ACCESS_KEY=wJalr...9c2H
Treat the leaked key as compromised: rotate it now, then close the exposure.
- Revoke AKIA4XR2…QF7A in IAM immediately and audit CloudTrail for use.
- Block .git at the web tier: deny location ~ /\.git in nginx.
- Deploy build artifacts only; never git clone onto a web root. Move secrets to a secrets manager.