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

CVE-2024-22258

6.1 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 6.1 – Media

Descrizione

Spring Authorization Server versions 1.0.0 - 1.0.5, 1.1.0 - 1.1.5, 1.2.0 - 1.2.2 and older unsupported versions are susceptible to a PKCE Downgrade Attack for Confidential Clients. Specifically, an application is vulnerable when a Confidential Client uses PKCE for the Authorization Code Grant. An application is not vulnerable when a Public Client uses PKCE for the Authorization Code Grant.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
spring spring >= 1.0.x < 1.0.6 –
spring spring >= 1.1.x < 1.1.6 –
spring spring >= 1.2.x < 1.2.3 –

Tipo di vulnerabilità

CWE-470 Use of Externally-Controlled Input to Select Classes or Code

The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.

Impatto sui sistemi

AmbitoImpatto
Integrità, Riservatezza, Disponibilità, Altro Eseguire codice o comandi non autorizzati, Alterare la logica di esecuzione
Disponibilità, Altro Interruzione del servizio: arresto o riavvio, Altro
Riservatezza Leggere i dati dell’applicazione

Come si previene

Architettura e progettazione Refactor your code to avoid using reflection.
Architettura e progettazione Do not use user-controlled inputs to select and load classes or code.
Sviluppo Apply strict input validation by using allowlists or indirect selection to ensure that the user is only selecting allowable classes or code.

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

Tutte le 149 CVE di tipo CWE-470, con andamento e prevenzione

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