GHSA-6v6c-4cxg-cc93

Suggest an improvement
Source
https://github.com/advisories/GHSA-6v6c-4cxg-cc93
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-6v6c-4cxg-cc93/GHSA-6v6c-4cxg-cc93.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6v6c-4cxg-cc93
Aliases
Published
2026-12-02T21:07:09Z
Modified
2026-12-02T21:15:09Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
vulnerability-operator IDOR exposes vulnerability reports via unauthenticated Report Handler
Details

Summary

An unauthenticated information-disclosure vulnerability exposes all vulnerability scan reports served by the operator. The /report/ HTTP endpoint mounts a raw http.FileServer over the reports directory (default /reports) with no authentication, authorization, or middleware. Any client that can reach the operator's HTTP port (default 8080) can list and download every JSON vulnerability report, disclosing CVE IDs, affected package names/versions, and container image identifiers for every workload scanned in the cluster.

Details

In main.go, the report directory is served directly by Go's standard file server:

  • Line 39: http.FileServer(http.Dir(vuln.OperatorConfig.ReportsDir)) builds a handler that recursively serves every file under the configured reports directory (default /reports).
  • Line 43: this handler is registered under /report/ via http.Handle on the default net/http mux, with no wrapping authentication/authorization middleware.

Because http.FileServer also enables directory listing by default, an attacker does not need to know report filenames in advance — they can browse /report/ to enumerate the full set of files and then fetch each one. There is no credential check, session check, or origin restriction anywhere on this path.

The exposed reports contain sensitive security posture data: CVE identifiers, vulnerable package names and versions, and container image references for every scanned workload. This effectively hands an attacker a prioritized map of exploitable weaknesses across the cluster.

PoC

Prerequisites: Unauthenticated. The attacker only needs network access to the operator pod on port 8080. In a default Kubernetes cluster with no NetworkPolicies, every pod can reach every other pod, so any workload in the cluster satisfies this — no credentials required.

# 1. Enumerate all files served under /report/
#    (Go's http.FileServer serves a directory listing by default)
curl -v 'http://<operator-pod-ip>:8080/report/'

# 2. Download a specific vulnerability report
curl -o vuln-report.json 'http://<operator-pod-ip>:8080/report/some-report.json'

# The response body contains CVE IDs, affected package names/versions,
# and container image references for scanned workloads.

Impact

This is a broken access control / sensitive information disclosure vulnerability (CWE-306: Missing Authentication for Critical Function, combined with CWE-548: Exposure of Information Through Directory Listing).

Any deployment of the operator whose HTTP port (default 8080) is reachable by untrusted parties — which, in a default Kubernetes cluster without NetworkPolicies, is every other pod in the cluster.

Database specific
{
    "cwe_ids":  [
        "CWE-306",
        "CWE-548"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-02T21:07:09Z",
    "nvd_published_at":  "2026-11-11T18:19:47Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/ckotzbauer/vulnerability-operator

Package

Name
github.com/ckotzbauer/vulnerability-operator
View open source insights on deps.dev
Purl
pkg:golang/github.com/ckotzbauer/vulnerability-operator

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20260703063738-b083ab0146e7

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-6v6c-4cxg-cc93/GHSA-6v6c-4cxg-cc93.json"