hunt-nextjs

Tests Next.js applications for Server Actions abuse, middleware bypass, SSRF, and data leakage vulnerabilities.

1|Updated Aug 21, 2026
One-click install
npx skills add https://github.com/marcboggs/BMAD-AppSec-Orchestrator --skill hunt-nextjs-marcboggs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hunt-nextjs
Source: https://github.com/marcboggs/BMAD-AppSec-Orchestrator/tree/main/.claude/skills/hunt-nextjs
Command: npx skills add https://github.com/marcboggs/BMAD-AppSec-Orchestrator --skill hunt-nextjs-marcboggs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Next.js applications expose framework-specific attack surfaces—Server Actions, middleware, image optimization, ISR caching, and prerendered data endpoints—that generic web vulnerability scans often miss, leaving auth bypasses and SSRF flaws undetected. ## Core Features & Use Cases - Framework-Specific Attack Phases: Eight structured phases covering fingerprinting, Server Actions abuse, middleware auth bypass (including CVE-2025-29927), /_next/image SSRF, /_next/data/ IDOR, ISR cache poisoning, debug endpoints, and environment variable leakage. - False-Positive Guards: Built-in validation rules prevent misreporting, such as requiring out-of-band callback confirmation for SSRF and distinguishing dev-mode-only debug endpoints from real findings. - Use Case: During an authorized bug bounty engagement against a Next.js 14 target, follow the phases to extract the build ID, test Server Actions without a session, probe middleware-gated admin routes, and confirm an image optimizer SSRF via a unique Collaborator callback. ## Quick Start Ask the agent to run the Next.js hunting workflow against your authorized target domain, starting with fingerprinting and build ID extraction.

Frequently Asked Questions about hunt-nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Next.js Server Actions for authentication bypass?▼

Extract action IDs from the HTML source or JS bundles, then send a POST request with the Next-Action header directly to the page without a session cookie. If the action executes and returns data or mutates state, authentication is enforced only client-side.

How to test Next.js middleware bypass with x-middleware-subrequest?▼

Send a request to a middleware-protected route with the header x-middleware-subrequest set to repeated middleware values. A 200 response on a gated route confirms the bypass, tracked as CVE-2025-29927 and fixed in versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3.

Does a 200 response from /_next/image confirm SSRF?▼

No, a 200 response only returns an optimized image, not the upstream body, and non-whitelisted URLs return 400 by default. Confirm SSRF only through an out-of-band DNS or HTTP callback to a unique Collaborator subdomain.

Why do Next.js debug endpoints return 404 in production?▼

The __nextjs_launch-editor and __nextjs_original-stack-frame endpoints are only registered under next dev, not production builds. A 404 is the expected result; only a non-404 response indicates a dev server wrongly exposed in production.

What Next.js versions are affected by CVE-2024-34351 SSRF?▼

CVE-2024-34351 is a Server Actions SSRF affecting Next.js 13.4.0 through versions before 14.1.1, fixed in 14.1.1. It involves a relative redirect trusting the Host header and does not affect Host-routed providers like Vercel.