llamaCVEVulnerability Intelligence
/
authentik

CVE-2023-48228

OAuth2: PKCE can be fully circumvented

UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Fuente: CNA
9.8NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones2023.8.5 · 2023.10.4
Exposición1.093 dDesde la divulgación, 21 nov 2023, 3:48 p. m.
Detección1.077 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
21 nov 23
2 ago 24
3 nov 26
18 nov 26
19 nov 26
21 nov 23
21 ago 24
21 may 25
19 feb 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2023-48228 divulgada · CVSS 7.5 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

authentik is an open-source identity provider. When initialising a oauth2 flow with a `code_challenge` and `code_method` (thus requesting PKCE), the single sign-on provider (authentik) must check if there is a matching and existing `code_verifier` during the token step. Prior to versions 2023.10.4 and 2023.8.5, authentik checks if the contents of `code_verifier` is matching only when it is provided. When it is left out completely, authentik simply accepts the token request with out it; even when the flow was started with a `code_challenge`. authentik 2023.8.5 and 2023.10.4 fix this issue.

Affects authentik 2023.10.3 and earlier, and 2023.8.4 and earlier. Fixed in authentik 2023.10.4 and 2023.8.5.

¿Qué significa?PKCE, the protection a code_challenge is meant to provide for OAuth2 flows, can be fully circumvented. The flaw applies even when the flow was started with a code_challenge. The impact is that an attacker could potentially gain full access to the application.
¿Quién está afectado?Affected are authentik 2023.10.3 and earlier, and 2023.8.4 and earlier, in setups using the OAuth2 flow. To check a installation, compare its authentik version against these ranges.
¿Qué hacer?Upgrade to authentik 2023.10.4 if on the 2023.10 line, or to 2023.8.5 if on the 2023.8 line.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
authentik 2023.10.3 and earlier, or 2023.8.4 and earlier“<= 2023.10.3”
02
The OAuth2 flow was started with a code_challenge (PKCE requested)“even when the flow was started with a code_challenge”
¿Quién debe revisar?Teams running authentik 2023.10.3 or earlier, or 2023.8.4 or earlier, with OAuth2 clients using PKCE, including public and hybrid clients such as mobile apps.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
authentik< 2023.8.5
authentik< 2023.10.4
2023.8.5
2023.10.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
authentik
Corregida 2023.8.5, 2023.10.4 — —
Versiones corregidas2023.8.52023.10.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/goauthentik/authentik/security/advisories/GHSA-fm34-v8xq-f2c3
Otrahttps://github.com/goauthentik/authentik/pull/7666
Otrahttps://github.com/goauthentik/authentik/pull/7668
Otrahttps://github.com/goauthentik/authentik/pull/7669
Otrahttps://github.com/goauthentik/authentik/commit/3af77ab3821fe9c7df8055ba5eade3d1ecea03a6
Otrahttps://github.com/goauthentik/authentik/commit/6b9afed21f7c39f171a4a445654cfe415bba37d5
Otrahttps://github.com/goauthentik/authentik/commit/b88e39411c12e3f9e04125a7887f12354f760a14
Otrahttps://github.com/goauthentik/authentik/blob/dd4e9030b4e667d3720be2feda24c08972602274/authentik/providers/oauth2/views/token.py#L225
Otrahttps://github.com/goauthentik/authentik/releases/tag/version%2F2023.10.4
Otrahttps://github.com/goauthentik/authentik/releases/tag/version%2F2023.8.5

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.