llamaCVEVulnerability Intelligence
/
nextjs-auth0

CVE-2021-32702

Reflected XSS from the callback handler's error query parameter

Texto original en inglés · Ver en español

Solo en configuraciones específicasParche disponible
Descargar PNG JSON
CVSS 3.1
8.0
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N Fuente: CNA
6.1NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición1.975 dDesde la divulgación, 25 jun 2021, 11:25 a. m.
Detección1.956 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir de cerca
Monitorear y programar la remediación
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Esto huele a PoC esperando su momento.No corre prisa, pero no la pierdas de vista.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 1.4.2
Monitoreo
Detectada
Verificada
24 jun 21
25 jun 21
3 ago 24
3 nov 26
18 nov 26
21 nov 26
24 jun 21
31 oct 22
8 mar 24
15 jul 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.4.2 @auth0/nextjs-auth0 · -1 d desde divulgación
Divulgación Publicada CVE-2021-32702 divulgada · CVSS 8 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions before and including `1.4.1` are vulnerable to reflected XSS. An attacker can execute arbitrary code by providing an XSS payload in the `error` query parameter which is then processed by the callback handler as an error message. You are affected by this vulnerability if you are using `@auth0/nextjs-auth0` version `1.4.1` or lower **unless** you are using custom error handling that does not return the error message in an HTML response. Upgrade to version `1.4.1` to resolve. The fix adds basic HTML escaping to the error message and it should not impact your users.

Affects @auth0/nextjs-auth0 1.4.1 and lower, except apps using custom error handling that does not return the error message in an HTML response. Fixed in 1.4.2.

¿Qué significa?The callback handler reflects the error query parameter into its response without proper escaping. A crafted link carrying a script in that parameter can make the page run attacker-supplied code in the victim's browser.
¿Quién está afectado?Versions 1.4.1 and lower of @auth0/nextjs-auth0 are affected, unless the app uses custom error handling that does not return the error message in an HTML response. To check, look at the installed version in package.json or with npm ls @auth0/nextjs-auth0.
¿Qué hacer?Upgrade @auth0/nextjs-auth0 to version 1.4.2.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Uses @auth0/nextjs-auth0 version 1.4.1 or lower“if you are using @auth0/nextjs-auth0 version 1.4.1 or lower”
02
Not using custom error handling that returns the error message in a non-HTML response“unless you are using custom error handling that does not return the error message in an HTML response”
¿Quién debe revisar?Teams running @auth0/nextjs-auth0 version 1.4.1 or lower in Next.js applications, unless they use custom error handling that does not return errors in HTML responses
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:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
5.9/ 10Medio
Vector 5.9 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
nextjs-auth0 · @auth0/nextjs-auth0< 1.4.2
1.4.2
4.33.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@auth0/nextjs-auth0
Corregida 1.4.2 -1 d 4.33.0 no afectada
Versiones corregidas1.4.2
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/auth0/nextjs-auth0/security/advisories/GHSA-954c-jjx6-cxv7
Otrahttps://github.com/auth0/nextjs-auth0/commit/6996e2528ceed98627caa28abafbc09e90163ccf
Otrahttps://www.npmjs.com/package/%40auth0/nextjs-auth0

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