llamaCVEVulnerability Intelligence
/
authentik

CVE-2024-47070

authentik vulnerable to password authentication bypass via X-Forwarded-For HTTP header

UnclearParche disponibleauthentication bypass
Descargar PNG JSON
CVSS 3.1
9.1
Crítica
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones2024.6.5 · 2024.8.3
Exposición783 dDesde la divulgación, 27 sept 2024, 10:18 a. m.
Detección780 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
27 sept 24
17 nov 26
18 nov 26
20 nov 26
27 sept 24
11 abr 25
24 oct 25
8 may 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2024-47070 divulgada · CVSS 9.1 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
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. A vulnerability that exists in versions prior to 2024.8.3 and 2024.6.5 allows bypassing password login by adding X-Forwarded-For header with an unparsable IP address, e.g. `a`. This results in a possibility of logging into any account with a known login or email address. The vulnerability requires the authentik instance to trust X-Forwarded-For header provided by the attacker, thus it is not reproducible from external hosts on a properly configured environment. The issue occurs due to the password stage having a policy bound to it, which skips the password stage if the Identification stage is setup to also contain a password stage. Due to the invalid X-Forwarded-For header, which does not get validated to be an IP Address early enough, the exception happens later and the policy fails. The default blueprint doesn't correctly set `failure_result` to `True` on the policy binding meaning that due to this exception the policy returns false and the password stage is skipped. Versions 2024.8.3 and 2024.6.5 fix this issue.

Only affects authentik 2024.8.0-rc1 up to 2024.8.3 and versions before 2024.6.5 when AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS is misconfigured. Fixed in 2024.8.3 and 2024.6.5.

¿Qué significa?An attacker can send a crafted X-Forwarded-For HTTP header to bypass the password login and authenticate or authorize to any account whose login or email address is known. The bypass works when the instance trusts the attacker-supplied header, for example because AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS is not configured properly or the reverse proxy does not overwrite the header.
¿Quién está afectado?Affected are authentik releases from 2024.8.0-rc1 up to 2024.8.3 and releases before 2024.6.5. The exposure also depends on setup: the default authentication flow must use the password-stage policy described in the advisory, and policies must be bound to authentication or authorization flows. To check, review the authentik version and the AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS setting, and whether the reverse proxy overwrites X-Forwarded-For.
¿Qué hacer?Upgrade to authentik 2024.8.3 or 2024.6.5, depending on the release line in use. Also configure AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS correctly and make sure the reverse proxy overwrites the X-Forwarded-For header.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The authentik instance must trust the X-Forwarded-For header supplied by the attacker, e.g. AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS is not configured properly.“An attacker can access authentik without a reverse proxy (and AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS is not configured properly)”
02
The reverse proxy does not correctly overwrite the X-Forwarded-For header.“The reverse proxy configuration does not correctly overwrite X-Forwarded-For”
03
Policies are bound to authentication or authorization flows (user and group bindings do not apply).“Policies (User and group bindings do not apply) are bound to authentication/authorization flows”
04
The authentication flow uses a policy that enables the password stage only when the Identification stage has no password stage, which the bypass skips.“Since the default authentication flow uses a policy to only enable the password stage when there is no password stage selected on the Identification stage”
¿Quién debe revisar?Teams running authentik 2024.8.2 or earlier, or 2024.6.4 or earlier, with password login in an authentication flow that uses an Identification stage with policy-bound password stage.
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:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
authentik< 2024.6.5
authentik≥ 2024.8.0-rc1 < 2024.8.3
2024.6.5
2024.8.0-rc1
2024.8.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
authentik
Corregida 2024.6.5, 2024.8.3 — —
Versiones corregidas2024.6.52024.8.3
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-7jxf-mmg9-9hg7
Otrahttps://github.com/goauthentik/authentik/commit/78f7b04d5a62b2a9d4316282a713c2c7857dbe29
Otrahttps://github.com/goauthentik/authentik/commit/dd8f809161e738b25765797eb2a5c77a7d3fc2cf

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