hunt-nextjs

Detect Next.js 13/15 vulnerabilities including Server Actions auth bypass and Image Optimization SSRF.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill hunt-nextjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-nextjs
Source: https://github.com/uphiago/recon-skills/tree/main/redteam/hunt-nextjs
Command: npx skills add https://github.com/uphiago/recon-skills --skill hunt-nextjs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of identifying hard-to-detect, framework-specific vulnerabilities in Next.js 13/15 and React SSR applications that generic web scanners miss, reducing the risk of missing critical flaws like auth bypasses, SSRF, and data leakage during authorized security assessments.

Core Features & Use Cases

  • Next.js-Specific Vulnerability Detection: Identifies high-impact flaws including Server Actions auth bypass, Middleware bypass via static asset paths, ISR cache poisoning, Image Optimization SSRF, RSC payload leakage, and debug endpoint exposure.
  • Targeted Attack Surface Mapping: Pinpoints Next.js-specific endpoints (/_next/image, /_next/data/, NEXT_DATA) and version-specific weaknesses using disclosed CVEs (e.g., CVE-2024-34351) and official framework advisories.
  • Use Case: Use during authorized penetration tests or red team engagements of Next.js applications to uncover critical vulnerabilities that can lead to admin access, cloud compromise, or sensitive user data exfiltration.

Quick Start

Use the hunt-nextjs skill to scan a target Next.js application for Server Actions auth bypass, Image SSRF, and Middleware bypass vulnerabilities, then validate findings with out-of-band callbacks to confirm exploitability.

Frequently Asked Questions about hunt-nextjs

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

FAQPage Schema
How do I find Server Actions auth bypass vulnerabilities in Next.js?

Next.js middleware path bypass occurs when static asset paths inadvertently skip authentication checks. You can hunt for this vulnerability by fingerprinting Next.js-specific endpoints and testing middleware routing against disclosed framework advisories.

What is Next.js Image Optimization SSRF and how can I detect it?

Next.js Image Optimization SSRF is a high-severity flaw where the /_next/image endpoint is manipulated to access internal resources. You detect it by targeting this endpoint to achieve cloud metadata exfiltration during authorized red team engagements.

Can I use this to test for ISR cache poisoning on Next.js 13 and 15?

Yes, you can test for ISR cache poisoning on Next.js 13 and 15. The skill specifically identifies cache poisoning flaws by applying endpoint fingerprinting techniques and official framework advisories to validate critical data leakage impacts.

What is the best way to hunt for RSC payload leakage in React SSR frameworks?

The best way to hunt for RSC payload leakage in React SSR frameworks is to map targeted attack surfaces like __NEXT_DATA__ endpoints. This process uncovers sensitive user data exfiltration risks specific to Next.js server-side rendered applications.

Does this skill detect generic web vulnerabilities or only Next.js specific flaws?

This skill detects only Next.js specific flaws rather than generic web vulnerabilities. It identifies framework-specific weaknesses like debug endpoint exposure and RSC payload leakage that generic web scanners typically miss during penetration tests.