
PoC for a full exploitation of NextJS SSRF (CVE-2024-34351)
PoC for a full exploitation of NextJS SSRF. An attacker can get any website content from Next.js server using CVE-2024-34351 vulnerability.
This vulnerability is fixed in [email protected].
deno run --allow-net --allow-read attacker-server.ts
python3 attacker-server.py
Host header to attacker server. (e.g. Host: 192.198.0.144:8000)Origin header to attacker server. (e.g. Origin: http://192.198.0.144:8000/)SSRF to specify where to redirect to. (e.g. SSRF: http://example.com/test)