Descrizione
A caller who can send requests to the temporal-proxy gRPC listener can obtain the static API key of an upstream whose address is templated from the request namespace, and then use that key directly against the upstream Temporal service. temporal-proxy does not validate the request namespace before rendering it into a templated upstream address, so when an upstream's hostPort is templated from the namespace, as in the published Temporal Cloud configuration example, a crafted namespace changes the host the proxy dials. If that upstream verifies TLS against the system trust store and sets no literal server name, a caller-controlled host with a publicly trusted certificate passes verification and receives the key. The built-in static-token and JWKS authenticators do not restrict namespaces, so any caller they admit can do this; an external authenticator that admits only listed namespaces prevents it. temporal-proxy versions 0.1.0 through 1.2.0 are affected. The issue is fixed in 1.0.2, 1.1.2, and 1.2.1, and releases before 1.0.0 receive no fix. Upgrade to the fixed release for the deployed minor release line, and rotate any upstream API key that untrusted callers could reach.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.3, EPSS 0.3% (percentile 29).
Versioni da aggiornare
- Temporal Technologies, Inc. temporal-proxy: vulnerabili le versioni dalla
1.0.0precedenti alla1.0.2→ aggiornare alla1.0.2o successiva. - Temporal Technologies, Inc. temporal-proxy: vulnerabili le versioni dalla
1.1.0precedenti alla1.1.2→ aggiornare alla1.1.2o successiva. - Temporal Technologies, Inc. temporal-proxy: vulnerabili le versioni dalla
1.2.0precedenti alla1.2.1→ aggiornare alla1.2.1o successiva. - Temporal Technologies, Inc. temporal-proxy: vulnerabili le versioni dalla
0.1.0fino alla0.10.1inclusa → aggiornare a una release successiva alla0.10.1.
Indicazioni del vendor
Soluzione (testo originale del vendor):
Upgrade to temporal-proxy 1.0.2, 1.1.2, or 1.2.1, as appropriate for the deployed minor release line. Fixed releases reject a request whose templated upstream address does not render to a plain host name or IP address with an optional port, or whose templated TLS server name is not a plain host name. They also refuse at configuration load a templated hostPort or tls.serverName whose host does not end in a literal domain, as in {{ .RemoteNamespace }}.tmprl.cloud:7233, so a configuration that templates the whole host must be changed before upgrading. Rotate any upstream API key held by an affected deployment that untrusted callers could reach. Releases before 1.0.0 receive no fix.
Workaround (testo originale del vendor):
Use fixed upstream addresses, or routing rules that match literal namespace names, with no default or system route to a templated upstream. Alternatively, set a literal tls.serverName on the templated upstream, or use an external authenticator that admits only listed namespaces.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare filtri sul traffico in uscita del server e bloccare l'accesso agli endpoint di metadati cloud (169.254.169.254).
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Temporal Technologies, Inc. | temporal-proxy | ≥ 1.0.0 < 1.0.2 | 1.0.2 |
| Temporal Technologies, Inc. | temporal-proxy | ≥ 1.1.0 < 1.1.2 | 1.1.2 |
| Temporal Technologies, Inc. | temporal-proxy | ≥ 1.2.0 < 1.2.1 | 1.2.1 |
| Temporal Technologies, Inc. | temporal-proxy | ≥ 0.1.0 ≤ 0.10.1 | — |
Riferimenti
- Riferimentohttps://github.com/temporalio/temporal-proxy/blob/v1.2.0/internal/proxy/resolver.go#L259-L282
- Riferimentohttps://github.com/temporalio/temporal-proxy/commit/b902dcfcc1d32288c9d1d14fc2c71d2e8052a4b8
- Riferimentohttps://github.com/temporalio/temporal-proxy/commit/c73636037045e31162420a13f6f0aee48ce3313a
- Riferimentohttps://github.com/temporalio/temporal-proxy/commit/cd60785edd81cfa0c599b17f94ee7de7d8eaf061
- Riferimentohttps://github.com/temporalio/temporal-proxy/commit/dfb4b83f0ed20db5a9f772dd249470f7f7f15c90
- Riferimentohttps://github.com/temporalio/temporal-proxy/pull/284
- Riferimentohttps://github.com/temporalio/temporal-proxy/pull/292
- Riferimentohttps://github.com/temporalio/temporal-proxy/pull/293
- Riferimentohttps://github.com/temporalio/temporal-proxy/pull/294
- Riferimentohttps://github.com/temporalio/temporal-proxy/releases/tag/v1.0.2
- Riferimentohttps://github.com/temporalio/temporal-proxy/releases/tag/v1.1.2
- Riferimentohttps://github.com/temporalio/temporal-proxy/releases/tag/v1.2.1