OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| opencost | opencost | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Opencost | Opencost |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-wmj8-9953-vff5 | OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.753% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Opencost
Opencost opencost |
|
| Vendors & Products |
Opencost
Opencost opencost |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | OpenCost provides cost monitoring for Kubernetes workloads and cloud costs. Prior to 1.121.0, the POST /serviceKey endpoint in pkg/costmodel/router.go allows a network client to invoke AddServiceKey without mandatory authentication and submit an arbitrary key form value that is written to the GCP service-account key.json file returned by GetGCPAuthSecretFilePath in core/pkg/env/core.go. The attacker controls the file contents but not the CONFIG_PATH-derived directory, the key.json filename, or the file mode. Replacing the credential contents can disrupt GCP cost collection or cause OpenCost to use attacker-selected credentials, and the wildcard Access-Control-Allow-Origin response permits browser-assisted requests when the service is reachable from a browser. This issue is fixed in version 1.121.0. | |
| Title | OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection | |
| Weaknesses | CWE-20 CWE-309 |
|
| References |
|
|
| Metrics |
cvssV4_0
|