1. Archivio CVE
  2. 2024
  3. CVE-2024-28197

CVE-2024-28197

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N 7.5 – Alta

Descrizione

Zitadel is an open source identity management system. Zitadel uses a cookie to identify the user agent (browser) and its user sessions. Although the cookie was handled according to best practices, it was accessible on subdomains of the ZITADEL instance. An attacker could take advantage of this and provide a malicious link hosted on the subdomain to the user to gain access to the victim’s account in certain scenarios. A possible victim would need to login through the malicious link for this exploit to work. If the possible victim already had the cookie present, the attack would not succeed. The attack would further only be possible if there was an initial vulnerability on the subdomain. This could either be the attacker being able to control DNS or a XSS vulnerability in an application hosted on a subdomain. Versions 2.46.0, 2.45.1, and 2.44.3 have been patched. Zitadel recommends upgrading to the latest versions available in due course. Note that applying the patch will invalidate the current cookie and thus users will need to start a new session and existing sessions (user selection) will be empty. For self-hosted environments unable to upgrade to a patched version, prevent setting the following cookie name on subdomains of your Zitadel instance (e.g. within your WAF): `__Secure-zitadel-useragent`.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
zitadel zitadel < 2.44.3 –
zitadel zitadel 2.45.0 –
zitadel zitadel 2.45.0 rc1 –
zitadel zitadel 2.46.0 rc1 –
zitadel zitadel 2.46.0 rc2 –
Tutte le 88 vulnerabilità di Zitadel

Tipo di vulnerabilità

CWE-384 Session fixation

Al momento dell’accesso, o dell’apertura di una nuova sessione, il prodotto non invalida l’identificativo di sessione già esistente: un attaccante che lo conosce può impossessarsi della sessione autenticata.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Ottenere privilegi o assumere un’altra identità

Come si previene

Architettura e progettazione Invalidate any existing session identifiers prior to authorizing a new user session.
Architettura e progettazione For platforms such as ASP that do not generate new values for sessionid cookies, utilize a secondary cookie. In this approach, set a secondary cookie on the user's browser to a random value and set a session variable to the same value. If the session variable and the cookie value ever don't match, invalidate the session, and force the user to log on again.
Esercizio · Firewall Usa un firewall applicativo (WAF) in grado di rilevare attacchi contro questo tipo di vulnerabilità. È utile quando il codice non può essere corretto (perché controllato da terzi), come misura d’emergenza in attesa di interventi più completi, o come difesa aggiuntiva.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 445 CVE di tipo CWE-384, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org