Description
OpenCost before 1.121.0 fails to authenticate the GET /helmValues endpoint, exposing base64-decoded HELM_VALUES environment variable containing cloud provider credentials. Additionally, adminAuthMiddleware fails open when ADMIN_TOKEN is unset, allowing unauthenticated attackers to modify GCP service account keys via POST /serviceKey to redirect billing calls.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| opencost | opencost | < 1.121.0 | 1.121.0 |
References
- Researcher Disclosure technical-description exploit issue-tracking
- OpenCost core/v1.121.0 Release Notes release-notes
- Pull Request issue-tracking patch
- Patch Commit patch
- https://www.vulncheck.com/advisories/opencost-unauthenticated-helm-values-exposure-and-admin-bypass third-party-advisory