← volver
CVE-2024-34351

Next.js Server-Side Request Forgery in Server Actions

CVSS 7.5 HIGHEPSS 5.5%CWE-918
En resumen

Una falla en Next.js Server Actions permite que atacantes engañen al servidor para hacer solicitudes modificando el header Host e iniciando redirecciones, haciendo parecer que el servidor es el remitente. Esto importa porque puede exponer servicios o recursos internos que solo deberían ser accesibles desde dentro de la red.

Detalle técnico

Vulnerabilidad SSRF en Next.js Server Actions activada por manipulación del header Host combinada con redirecciones de ruta relativa (comenzando con /). Requiere implementación self-hosted de Next.js utilizando Server Actions que ejecuten redirecciones; el atacante puede falsificar solicitudes que parecen originarse del servidor de aplicaciones, potencialmente accediendo a endpoints internos o exfiltrando datos sensibles. Corregido en Next.js 14.1.1.

Resumen generado y traducido por IA a partir de la descripción oficial.
Next.js is a React framework that can provide building blocks to create web applications. A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions. If the `Host` header is modified, and the below conditions are also met, an attacker may be able to make requests that appear to be originating from the Next.js application server itself. The required conditions are 1) Next.js is running in a self-hosted manner; 2) the Next.js application makes use of Server Actions; and 3) the Server Action performs a redirect to a relative path which starts with a `/`. This vulnerability was fixed in Next.js `14.1.1`.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Productos afectados
vercel · next.js

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →