Contrast before 1.4.1 Coordinator Impersonation via Unauthenticated Recovery
What fixes it
- 1.4.1contrastCVE List
- 1.4.1github.com/edgelesssys/contrast, GoOSV
go get github.com/edgelesssys/contrast@v1.4.1
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Contrast is a confidential-computing runtime for Kubernetes. In versions before 1.4.1, a recovering Coordinator does not verify the seed supplied by the recovering party. An attacker can therefore stand up a rogue Coordinator whose manifest passes validation but whose secret seed is attacker-controlled. If network traffic is redirected from the legitimate Coordinator to the attacker's Coordinator, a workload owner can be impersonated when they either set a new manifest without comparing the returned root CA certificate against the existing one (the default behavior of the contrast CLI) or verify the Coordinator without comparing the root CA certificate against a trusted reference. Under these conditions the attacker can issue certificates that chain back to the rogue Coordinator's root CA and recover arbitrary workload secrets of workloads deployed after the attack. Secrets of the legitimate Coordinator (seed, workload secrets, CA), workload integrity, and certificates chaining to the mesh CA are not affected.
Text from CVE List
Affected versions 3
- contrastaffected: all versions before 1.4.1CVE List
- contrastunaffected: 1.4.1CVE List
- github.com/edgelesssys/contrast, Gofrom first release, fixed in 1.4.1OSV