What problem does it solve?
This playbook provides a structured approach to discovering and validating authorization drift, caching boundary failures, server action misuse, and Edge/Node runtime divergences specific to Next.js applications, reducing missed vulnerabilities that arise from Next.js' multiple routers and rendering modes.
Core Features & Use Cases
- Route & Artifact Discovery: Techniques to enumerate routes via build manifests, source maps, and client bundles to uncover hidden or admin paths.
- Middleware & Authorization Testing: Methods to test middleware normalization, header manipulation, parameter pollution, and cross-router authorization inconsistencies.
- Server Actions, RSC & Caching Checks: Procedures to detect server action invocation flaws, RSC flight data leakage, ISR/on-demand revalidate weaknesses, and cache key confusion.
- Integrations & Edge Cases: Tests for NextAuth callback issues, image optimizer SSRF vectors, and Edge vs Node enforcement differences.
- Use Case: During a pentest of a SaaS platform built on Next.js, use this playbook to map routes, compare App and Pages router access controls, probe cached responses for user-specific data, and validate that server actions require strict server-side authorization.
Quick Start
Scan https://target.example for middleware bypasses, server action abuse, RSC/flight-data leakage, and cache boundary vulnerabilities.