temporal-proxy payload decryption is not bound to the request namespace
What fixes it
- 0.9.0temporal-proxyCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
temporal-proxy 0.2.0 through 0.8.0 does not bind encrypted payloads to the namespace they were encrypted for. When payload encryption is enabled, the proxy chooses the decryption key by an identifier stored in the payload rather than by the namespace of the request, and nothing in the ciphertext records that namespace. A caller whom the proxy authorizes only for namespace B, and who has obtained an encrypted payload from namespace A, can therefore have the proxy decrypt it. In 0.8.0, the caller can submit the payload to the codec server's /decode endpoint. In every affected version, a caller who can also write to namespace B on the Temporal server directly can place the payload there and read it back through the proxy. This holds whether namespaces share the default key or each has its own, because a single proxy holds every key it is configured with. The issue does not give the attacker encrypted payloads they could not already obtain, and does not allow encrypted payloads to be modified.
Text from CVE List
Affected versions 1
- temporal-proxyaffected: 0.2.0 before 0.9.0CVE List
References 9
- github.com/temporalio/temporal-proxy/pull/221Fixvia CVE List
- github.com/temporalio/temporal-proxy/commit/6843a2c4626aa2c7f00fbf54e4e9fa98f6254f07Fixvia CVE List
- github.com/temporalio/temporal-proxy/pull/222Fixvia CVE List
- github.com/temporalio/temporal-proxy/commit/508991c298b9ac31915dd7349ffa88d79fad3475Fixvia CVE List
- github.com/temporalio/temporal-proxy/releases/tag/v0.9.0Fixvia CVE List
- github.com/temporalio/temporal-proxy/blob/v0.8.0/pkg/crypto/vault.go#L256Referencevia CVE List
- github.com/temporalio/temporal-proxy/blob/v0.8.0/pkg/crypto/kek.go#L172-L180Referencevia CVE List
- github.com/temporalio/temporal-proxy/blob/v0.8.0/pkg/crypto/dek.go#L54-L67Referencevia CVE List
- github.com/temporalio/temporal-proxy/discussions/146Referencevia CVE List