Exploit database

Vulnerability

CVE-2024-34351

Next.js Server-Side Request Forgery in Server Actions

Vulnerability details

Score
7.5
Severity
high

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Description

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`.

CVE Program

Exploit source choices

3 sources
god4n/nextjs-cve-2024-34351-_exploit
GH-e65c41222764a422d28a36d60a0ca4b9GitHubUnofficial GitHub sourcePreferred

PoC for a full exploitation of NextJS SSRF (CVE-2024-34351)

2024-08-273 files · 10 stars
voorivex/cve-2024-34351
GH-4caefc74ff54c638fe9d6e2ae7d15eb5GitHubUnofficial GitHub source

voorivex/cve-2024-34351 source repository

2024-05-1217 files · 10 stars