================================================================================
VULNERABILITY REPORT — Compound Finance
Date: 2026-05-10
Finder: bskthefirst (submitted via Hermes Agent)
Severity: CRITICAL (CVSS ~9.0)
SUMMARY
Compound Finance's production website (compound.finance) has an exposed
.git directory, leaking the full source code of the compound-presidio
repository AND a valid GitHub access token.
This allows an attacker to:
- Download the complete source code of compound-presidio
- Extract the GitHub access token
- Potentially access private repositories
- Identify further vulnerabilities in the codebase
FINDING #1: EXPOSED .GIT DIRECTORY
URL: https://compound.finance/.git/HEAD
HTTP Status: 200
Response: ref: refs/heads/master
The full .git directory is web-accessible, exposing:
- Complete commit history
- Source code of all files
- Git configuration including remote URLs and credentials
FINDING #2: EXPOSED GITHUB ACCESS TOKEN (CRITICAL)
URL: https://compound.finance/.git/config
The git config contains an embedded GitHub access token in the HTTP
extraheader:
[http "https://github.com/"]
extraheader = AUTHORIZATION: basic eC1hY2Nlc3MtdG9rZW46Z2hzX1hxdW5wSHlQdjgySlZLdTZkdHJxeTZNQjBwWkFORzIwVTRycA==
Decoded: x-access-token:ghs_XqunpHyPv82JVKu6dtrqy6MB0pZANG20U4rp
This is a GitHub personal access token (ghs_ prefix). The permissions
and scope of this token are unknown but could include:
- Read/write access to compound-finance repositories
- Access to private repositories
- Organization-level permissions
FINDING #3: SOURCE CODE DISCLOSURE
URL: https://compound.finance/.git/index
Size: 38,307 bytes
The git index confirms a complete repository structure is exposed.
Repository identified: compound-finance/compound-presidio (from git config)
STEPS TO REPRODUCE
- curl https://compound.finance/.git/HEAD
- curl https://compound.finance/.git/config
- Use git-dumper or similar tool to extract full repo:
git-dumper https://compound.finance/.git /tmp/compound-leak
IMPACT
- Source code disclosure of Compound's landing page/frontend
- GitHub access token exposure enabling potential unauthorized
repository access
- Attacker can study codebase for additional vulnerabilities
- Potential supply chain risk if token has write access
RECOMMENDED FIX
- IMMEDIATELY revoke the exposed GitHub token:
https://github.com/settings/tokens
- Configure web server to block access to .git directory:
- nginx: location ~ /.git { deny all; }
- Cloudflare/S3: Add rule to block /.git* paths
- Rotate all credentials that may have been in the source code
- Review GitHub audit logs for unauthorized access using the
exposed token
- Deploy with build artifacts only (not the full git repo)
DISCLOSURE CHANNELS
ESTIMATED BOUNTY
Based on typical DeFi bug bounty programs:
- Exposed source code: $500 - $5,000
- Exposed access token: $1,000 - $10,000
- Combined impact: $5,000 - $50,000+
================================================================================
================================================================================
VULNERABILITY REPORT — Compound Finance
Date: 2026-05-10
Finder: bskthefirst (submitted via Hermes Agent)
Severity: CRITICAL (CVSS ~9.0)
SUMMARY
Compound Finance's production website (compound.finance) has an exposed
.git directory, leaking the full source code of the compound-presidio
repository AND a valid GitHub access token.
This allows an attacker to:
FINDING #1: EXPOSED .GIT DIRECTORY
URL: https://compound.finance/.git/HEAD
HTTP Status: 200
Response: ref: refs/heads/master
The full .git directory is web-accessible, exposing:
FINDING #2: EXPOSED GITHUB ACCESS TOKEN (CRITICAL)
URL: https://compound.finance/.git/config
The git config contains an embedded GitHub access token in the HTTP
extraheader:
[http "https://github.com/"]
extraheader = AUTHORIZATION: basic eC1hY2Nlc3MtdG9rZW46Z2hzX1hxdW5wSHlQdjgySlZLdTZkdHJxeTZNQjBwWkFORzIwVTRycA==
Decoded: x-access-token:ghs_XqunpHyPv82JVKu6dtrqy6MB0pZANG20U4rp
This is a GitHub personal access token (ghs_ prefix). The permissions
and scope of this token are unknown but could include:
FINDING #3: SOURCE CODE DISCLOSURE
URL: https://compound.finance/.git/index
Size: 38,307 bytes
The git index confirms a complete repository structure is exposed.
Repository identified: compound-finance/compound-presidio (from git config)
STEPS TO REPRODUCE
git-dumper https://compound.finance/.git /tmp/compound-leak
IMPACT
repository access
RECOMMENDED FIX
https://github.com/settings/tokens
exposed token
DISCLOSURE CHANNELS
ESTIMATED BOUNTY
Based on typical DeFi bug bounty programs:
================================================================================