Descrizione
Temporal Server does not bind internal completion callbacks to the namespace that attached them, which allows an authenticated caller with write permission in one namespace to alter Scheduler V2 schedule state in another namespace. The callback address temporal://internal is reserved for callbacks that Scheduler V2 attaches to the Workflows it starts. In affected releases, any authenticated caller could attach a callback with that address to a Workflow start request, the address was exempt from the component.callbacks.allowedAddresses allowlist, and the History service delivered the callback to the component its token named, in whatever namespace that was, without authorizing the original caller there. When the forged completion matches an action a target schedule is running, the schedule records the action as completed while its Workflow still runs, which can defeat an overlap policy such as SKIP, and passes caller-controlled data to the next scheduled Workflow as its last completion result. A forged failure may also pause a schedule configured to pause on failure. A forgery requires the target namespace identifier, the schedule identifier, and the identity and timing of a running action. No disclosure of Workflow payloads or history was identified. Only namespaces that hold Scheduler V2 schedules can be targeted; Scheduler V2 is off by default, and existing Scheduler V2 schedules remain targets after the settings that create them are turned off.
Tipo di vulnerabilità
CWE-639
Aggiramento dell’autorizzazione tramite una chiave controllata dall’utente (IDOR)
Il controllo delle autorizzazioni non impedisce a un utente di accedere ai dati o ai record di un altro semplicemente cambiando l’identificativo che li richiama.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione È possibile aggirare i controlli di accesso su dati o funzioni specifici di un utente. |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità È possibile un’escalation orizzontale dei privilegi: un utente può vedere o modificare le informazioni di un altro. |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità È possibile un’escalation verticale dei privilegi se la chiave controllata dall’utente è in realtà un indicatore del ruolo di amministratore: l’attaccante ottiene così l’accesso amministrativo. |
Come si previene
Architettura e progettazione
Per ogni accesso ai dati, verifica che l’utente abbia i privilegi necessari per accedere al record richiesto.
Architettura e progettazione · Sviluppo
Assicurati che la chiave usata per cercare il record di un utente non possa essere controllata dall’esterno, o che ogni manomissione venga rilevata.
Architettura e progettazione
Usa la cifratura per rendere più difficile indovinare altri valori validi della chiave, oppure associa alla chiave una firma digitale, così che il server possa verificare che non sia stata manomessa.
Tutte le 3.500 CVE di tipo CWE-639, con andamento e prevenzione