llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @fastify/oauth2

GHSA-G8X5-P9QC-CF95

@fastify/oauth2 vulnerable to Cross Site Request Forgery due to reused Oauth2 state

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -2 d de la divulgación
Exposición1.233 dDesde la divulgación, 5 jul 2023, 4:36 p. m.
Detección1.230 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
Parche 7.2.0
Monitoreo
Detectada
3 jul 23
5 jul 23
8 nov 23
17 nov 26
19 nov 26
3 jul 23
7 may 24
12 mar 25
15 ene 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 7.2.0 @fastify/oauth2 · -2 d desde divulgación
Divulgación Publicada GHSA-G8X5-P9QC-CF95 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Impact

All versions of @fastify/oauth2 used a statically generated `state` parameter at startup time and were used across all requests for all users.
The purpose of the Oauth2 `state` parameter is to prevent Cross-Site-Request-Forgery attacks. As such, it should be unique per user and should be connected to the user's session in some way that will allow the server to validate it.

Patches

v7.2.0 changes the default behavior to store the `state` in a cookie with the `http-only` and `same-site=lax` attributes set. The state is now by default generated for every user.

Note that this contains a breaking change in the `checkStateFunction` function, which now accepts the full `Request` object.

Workarounds

There are no known workarounds.

References
  • Prevent Attacks and Redirect Users with OAuth 2.0 State Parameters https://auth0.com/docs/secure/attack-protection/state-parameters
Versiones

Rangos afectados

Afectada Corregida Última
@fastify/oauth2< 7.2.0
7.2.0
8.3.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@fastify/oauth2
Corregida 7.2.0 -2 d 8.3.2 no afectada
Versiones corregidas7.2.0
Explotación

Arsenal público

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

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-35935
Otrahttps://github.com/fastify/fastify-oauth2/security/advisories/GHSA-g8x5-p9qc-cf95
Otrahttps://github.com/fastify/fastify-oauth2/commit/bff756b456cbb769080631af2beb85671ff4c79c
Otrahttps://auth0.com/docs/secure/attack-protection/state-parameters
Otrahttps://github.com/fastify/fastify-oauth2
Otrahttps://github.com/fastify/fastify-oauth2/releases/tag/v7.2.0

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