<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T10:45:53.264794+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/fkie_cve-2026-44300</id>
    <title>fkie_cve-2026-44300</title>
    <updated>2026-09-29T10:45:53.296132+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>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.</p>
      </div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/fkie_cve-2026-44300"/>
  </entry>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-wmj8-9953-vff5</id>
    <title>GHSA-wmj8-9953-vff5 — OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection</title>
    <updated>2026-09-29T10:45:53.296244+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/opencost/opencost</p>
<p>## Summary</p>
<p>OpenCost contains an unauthenticated  file write vulnerability in the `/serviceKey` endpoint that allows remote attackers to overwrite the GCP service account key file without authentication. This can lead to service disruption, credential theft, and potential privilege escalation within Kubernetes clusters.</p>
<p>---</p>
<p>## Affected Versions</p>
<p>- **OpenCost**: All versions up to and including the latest release
- **Vulnerable File**: `pkg/costmodel/router.go` (lines 365-379)
- **Vulnerable Endpoint**: `POST /serviceKey`</p>
<p>---</p>
<p>## Vulnerability Details</p>
<p>### Root Cause</p>
<p>The `AddServiceKey` function in `pkg/costmodel/router.go` accepts user-supplied data via POST request and writes it directly to a file without any authentication or input validation:</p>
<p>```go
func (a *Accesses) AddServiceKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
    w.Header().Set("Content-Type", "application/json")
    w.Header().Set("Access-Control-Allow-Origin", "*")  // Overly permissive CORS</p>
<p>r.ParseForm()</p>
<p>key := r.PostForm.Get("key")  // User-controlled input, no validation
    k := []byte(key)
    err := os.WriteFile(env.GetGCPAuthSecretFilePath(), k, 0644)  //  Direct file write
    if err != nil {
        fmt.Fprintf(w, "Error writing service key: %s", err)
    }</p>
<p>w.WriteHeader(http.StatusOK)
}
```</p>
<p>**File Path Determination** (`core/pkg/env/core.go`):
```go
func GetGCPAuthSecretFilePath() string {
    return GetPathFromConfig("key.json")
}</p>
<p>func GetPathFromConfi…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-wmj8-9953-vff5"/>
  </entry>
</feed>
