Exploit database

GH-5178d2666e8669741e58364aed6239e8

dwisiswant0/next-16.2.4-pocs

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-23870

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files1

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

harness/app/api/server-action/route.ts

TypeScript · 1,149 bytes
import { NextRequest, NextResponse } from 'next/server';

// Server-Action-style surface used by:
//  - Server Actions DoS PoC (large multipart bodies / streaming abuse)
//  - Next-Resume PoC (resumable streaming abuse)
// Intentionally accepts arbitrary content-type and stores in memory.

export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';

export async function GET() {
  return NextResponse.json({
    ok: true,
    hint: 'POST any body here. Used as a Server Action / resume surface.',
  });
}

export async function POST(req: NextRequest) {
  const ct = req.headers.get('content-type') ?? '';
  const next = req.headers.get('next-action') ?? null;
  const resume = req.headers.get('next-resume') ?? null;

  let bodyBytes = 0;
  // Read the entire body — DoS surface
  const reader = req.body?.getReader();
  if (reader) {
    while (true) {
      const { done, value } = await reader.read();
      if (done) break;
      if (value) bodyBytes += value.byteLength;
    }
  }

  return NextResponse.json({
    ok: true,
    contentType: ct,
    nextAction: next,
    nextResume: resume,
    bytesRead: bodyBytes,
  });
}