← voltar
CVE-2024-34351

Next.js Server-Side Request Forgery in Server Actions

CVSS 7.5 HIGHEPSS 5.5%CWE-918
Em resumo

Uma falha no Next.js Server Actions permite que atacantes enganem o servidor para fazer requisições modificando o header Host e acionando redirecionamentos, fazendo parecer que o servidor é o remetente. Isso importa porque pode expor serviços ou recursos internos que deveriam ser acessíveis apenas de dentro da rede.

Detalhe técnico

Vulnerabilidade SSRF no Next.js Server Actions acionada pela manipulação do header Host combinada com redirecionamentos de caminho relativo (iniciando com /). Requer implantação self-hosted do Next.js utilizando Server Actions que executam redirecionamentos; o atacante consegue falsificar requisições que parecem originar do servidor da aplicação, potencialmente acessando endpoints internos ou exfiltrando dados sensíveis. Corrigido no Next.js 14.1.1.

Resumo gerado e traduzido por IA a partir da descrição 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
Produtos afetados
vercel · next.js

Quer saber se a sua infraestrutura está exposta a isto?

Falar com a TrueHacking →