#vulns.co
/
mcp by GKData.io

← Back to Playbooks

SPA / Next.js / React Hunting

The HTML is a shell. Routes, server actions, and /_next/data are the app.

Tags: spa, nextjs, react, js

Level: advanced

Method

  1. Rebuild source

    Maps, _next/static chunks, RSC payloads. Get original component names.

    Tools: sourcemapper, getJS, katana

  2. Route table

    Next.js pages, app router, rewrites in next.config (often inlined). Hit /_next/data/{buildId}/....json.

  3. Server actions / API routes

    POST to /api/* and Next server actions (the hashed IDs in the JS). Replay with another user's cookies.

    Tools: Burp Suite

  4. Middleware vs page auth

    Middleware that only redirects the document, not the data route or the action.

Field notes

  • A 404 HTML with a 200 JSON behind /_next/data is a classic miss.
  • Prototype pollution in client bundles plus a sink in the same app is still in play on older deps.

References

← Back to Playbooks