{"id":"GHSA-6v6c-4cxg-cc93","summary":"vulnerability-operator IDOR exposes vulnerability reports via unauthenticated Report Handler","details":"### Summary\nAn 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.\n\n### Details\nIn main.go, the report directory is served directly by Go's standard file server:\n\n- Line 39: http.FileServer(http.Dir(vuln.OperatorConfig.ReportsDir)) builds a handler that recursively serves every file under the configured reports directory (default /reports).\n- Line 43: this handler is registered under /report/ via http.Handle on the default net/http mux, with no wrapping authentication/authorization middleware.\n\nBecause 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.\n\nThe 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.\n\n### PoC\nPrerequisites: 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.\n```bash\n# 1. Enumerate all files served under /report/\n#    (Go's http.FileServer serves a directory listing by default)\ncurl -v 'http://\u003coperator-pod-ip\u003e:8080/report/'\n\n# 2. Download a specific vulnerability report\ncurl -o vuln-report.json 'http://\u003coperator-pod-ip\u003e:8080/report/some-report.json'\n\n# The response body contains CVE IDs, affected package names/versions,\n# and container image references for scanned workloads.\n```\n### Impact\nThis 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).\n\nAny 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.","aliases":["CVE-2026-64858"],"modified":"2026-12-02T21:15:09.358049819Z","published":"2026-12-02T21:07:09Z","database_specific":{"github_reviewed_at":"2026-12-02T21:07:09Z","nvd_published_at":"2026-11-11T18:19:47Z","cwe_ids":["CWE-306","CWE-548"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/ckotzbauer/vulnerability-operator/security/advisories/GHSA-6v6c-4cxg-cc93"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64858"},{"type":"WEB","url":"https://github.com/ckotzbauer/vulnerability-operator/commit/b083ab0146e7fb301be6b5a4bc917b5e5fad6eae"},{"type":"PACKAGE","url":"https://github.com/ckotzbauer/vulnerability-operator"},{"type":"WEB","url":"https://github.com/ckotzbauer/vulnerability-operator/releases/tag/0.28.16"}],"affected":[{"package":{"name":"github.com/ckotzbauer/vulnerability-operator","ecosystem":"Go","purl":"pkg:golang/github.com/ckotzbauer/vulnerability-operator"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}