Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hunt-nextjs

Skill by elementalsouls

Hunt Next.js specific vulnerabilities such as Server Actions abuse, middleware auth bypass, image optimizer SSRF and ISR cache poisoning. It is for security testers working on targets that run Next.js 13, 14 or 15.

  • Score 91
  • 30k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hunt-nextjs

Built from the published package, never by AI.

git clone --depth 1 https://github.com/elementalsouls/Claude-BugHunter /tmp/Claude-BugHunter && mkdir -p ~/.claude/skills && cp -r /tmp/Claude-BugHunter/skills/hunt-nextjs ~/.claude/skills/hunt-nextjs

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hunt-nextjs in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

hunt-nextjs is an agent skill that guides an assistant through security testing of Next.js and other React SSR applications. Its SKILL.md lists attack surface signals, such as the /_next/image endpoint, /_next/data/ paths and __NEXT_DATA__ in HTML, and gives curl-based test steps for each area. Covered areas include Server Actions, middleware bypass, image optimization SSRF, /_next/data/ IDOR, ISR cache poisoning, debug endpoints and environment variable leakage.

The skill stresses validation before reporting. It says a non-allowlisted image URL returning 400 is normal, and that SSRF should be confirmed with an out-of-band callback rather than a status code. It also says debug endpoints returning 404 in production are expected. It is aimed at security researchers and bug hunters testing Next.js targets.

Written from the project's SKILL.md and checked against it.

What it can do

  • FingerprintingConfirms Next.js and extracts the build ID, version hints and source map exposure.
  • Server Actions abuseCalls Server Action IDs directly to test whether auth is enforced.
  • Middleware bypassTests protected routes through static, data and encoded paths, and the x-middleware-subrequest header.
  • Image optimization SSRFTests /_next/image with internal and external URLs, confirmed by out-of-band callbacks.
  • Data IDOR checksEnumerates /_next/data/ JSON and inspects __NEXT_DATA__ for sensitive props.
  • ISR cache poisoningChecks whether query input persists in cached pages served to other clients.
  • Debug endpoint checksProbes __nextjs debug routes that should only exist under next dev.
  • Environment variable leakageSearches JS bundles and page data for exposed NEXT_PUBLIC_ and other variables.

What you need

  • curl
  • bash
  • python3
  • Interactsh or Burp Collaborator for out-of-band callbacks

Try asking

  • Check https://example.com for middleware bypass on its /admin routes.
  • Test the /_next/image endpoint on this Next.js site for SSRF with a callback host.
  • List the Server Actions on this Next.js app and check whether they need a session.

Good to know

  • A 400 response for non-allowlisted image URLs is normal and does not confirm SSRF.
  • Debug endpoints only exist under next dev, so a 404 is expected in production.
  • CVE-2024-34351 is a Server Actions issue, not an image optimizer bug.
  • The x-middleware-subrequest check lists fixed versions 12.3.5, 13.5.9, 14.2.25 and 15.2.3.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/hunt-nextjs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB

Alternatives to hunt-nextjs

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

hunt-nextjs: common questions

Which Next.js versions does this skill target?

The description says it is for targets running Next.js 13, 14 or 15. The source also notes CVE-2024-34351 affects 13.4.0 through versions before 14.1.1.

Does it confirm SSRF from status codes?

No. The skill says a 200 from /_next/image returns an optimized image, so SSRF should be confirmed with an out-of-band callback.

What is the x-middleware-subrequest check?

It tests whether sending that header skips middleware on a gated route. The source lists the fixed versions as 12.3.5, 13.5.9, 14.2.25 and 15.2.3.

How do I install hunt-nextjs?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hunt-nextjs free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hunt-nextjs safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hunt-nextjs?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

hunt-nextjs Install

Add to stack

Loading.