hunt-vibecoded
Skill0 starsChanged 3 months agoMITView on GitHub
Hunting AI-generated / 'vibe-coded' systems — recognizing LLM-authored code and attacking the security flaws it reliably ships: missing server-side authz, open Supabase/Firebase rules, mass assignment, client-side-only guards, leaked keys in bundles, unsigned webhooks, and prompt-injection in LLM features. TRIGGER: target looks AI-generated or rapidly shipped (v0/Lovable/Bolt/Replit/Cursor fingerprints, BaaS-direct frontends, tutorial-style comments, brand-new SaaS), or user says something looks vibecoded.
- Reads credentials
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- ffuf-web-fuzzingSkill
- hunt-aiSkill
- hunt-atoSkill
- hunt-bxssSkill
- hunt-idorSkill
- hunt-rbacSkill
- hunt-rceSkill
- hunt-reconSkill
- hunt-ssrfSkill
- hunt-xssSkill
- js-analyzeSkill
- triage-findingSkill
- write-reportSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 82
Firebase/Firestore: test whether rules permit reads of other users' documents.
- Distinctive: line 87
STOP. Never exercise a key against real data to "prove" impact.
- Distinctive: line 121
If the vibe-coded app itself ships an AI feature, that feature is its own target:
- Distinctive: line 142
Never exercise leaked credentials against real data (feedback_leaked-creds-roe).
- Distinctive: line 148
Do not guess field or endpoint names in a loop — that is brute force.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hunt-vibecoded — Attacking AI-Generated Systems
You are assisting an authorized bug bounty hunter under a program's published policy. This skill is about a provenance signal, not a new bug class: when code was generated by an LLM and shipped without review, it fails in a predictable, repeatable set of ways. Recognizing the provenance tells you which of the other hunt-* skills to run first and where the soft spot is.
The value here is prior probability. On a hand-built, well-reviewed target you might burn a session confirming the auth layer is solid (that is exactly what happened on Meesho and on Wolt's consumer→corporate boundary). On a vibe-coded target the auth layer is often not there at all on the server side. Same effort, wildly different expected value — so identify provenance EARLY and let it drive prioritization.
Core philosophy
An LLM writes code that looks correct and demos correctly. It optimizes for the happy path. Authorization, tenancy, and trust boundaries are invisible in a demo, so they are the first things omitted. The generated frontend then appears to enforce them, which is why these targets feel secure while browsing and fall apart the moment you leave the browser.
The one question that finds most of it: the UI enforces a rule — is that rule enforced anywhere on the server? Replay the request outside the app with a different ID, a different role, an extra field, or no session at all.
Phase 1 — Fingerprinting (is this vibe-coded?)
None of these alone is proof. Three or more is a strong signal. All are passive.
Build/deploy fingerprints
- Generator traces:
v0.dev,lovable,bolt.new,replit,windsurf,cursorin bundles, comments, commit messages, README, meta tags, or CSS class soup._nexton Vercel + shadcn/ui + Tailwind default palette is the house style. - Headers:
x-powered-by,server: Vercel,x-vercel-id, Netlify/Railway/Render. - A very new domain with a full-looking product and no engineering blog/careers page.
Code-shape fingerprints (from JS bundles / source maps)
- Tutorial-voice comments in production:
// In a real app you would…,// TODO: add proper authentication,// This is a simplified example, step-by-step numbered comments, emoji in code or commit messages. - Over-explained trivial lines next to zero comments on the security-critical ones.
- Placeholder artifacts left in:
your-api-key-here,example.com,test@test.com,changeme,secret,admin123. - Inconsistent idioms across files (three different fetch wrappers, mixed promise/async styles) — the signature of many separate prompts stitched together.
- Source maps left on in production. Very common, and it hands you the server
logic. Always check
.js.map(see hunt-recon).
Architecture fingerprints (the highest-value tell)
- Backend-as-a-Service called directly from the browser: Supabase, Firebase, Appwrite, PocketBase, Nhost. If the client holds a project URL + anon/public key and queries tables directly, ALL authorization rests on row-level security rules that are frequently left open.
- Next.js API routes / server actions with natural-language names
(
/api/get-user-orders,/api/admin/delete-user). - ORM spread patterns visible in bundles or maps (
...req.body,...formData). - A generated OpenAPI/tRPC client shipped to the public bundle exposing an internal
control plane. (Wolt's
decision-systemsSDK was exactly this shape — but always resolve the base URL first: it was out of scope, and that check cost zero requests.)
Phase 2 — What to attack, in expected-value order
1. Missing server-side authorization (the flagship)
The generated UI hides admin buttons; the API never checks. Take any privileged action the UI gates and invoke it directly with a low-privilege session.
- Forced browsing to
/admin,/dashboard/settings,/api/admin/*. - Next.js server actions are POST endpoints and can be invoked directly.
- Route handlers that read a role from a request body or header instead of the session — trivially spoofed. → Run hunt-rbac. This is the single most productive class on these targets.
2. Open BaaS rules (critical when present, and fast to check)
- Supabase: an anon key is designed to be public — the bug is RLS being off. Impact comes from reading or writing a table you shouldn't. Confirm minimally: query for a count/schema on a table that should be private, or read a row you already own vs one you don't. Do not bulk-dump.
- Firebase/Firestore: test whether rules permit reads of other users' documents.
Legacy
.jsonREST endpoints on RTDB are the classic. /api/*proxies that forward the service-role key from the server — if a service key reaches the client bundle, that is a critical secret exposure. → Follow feedback_leaked-creds-roe exactly: confirm the boundary is open, then STOP. Never exercise a key against real data to "prove" impact.
3. Mass assignment / role escalation
Generated CRUD does prisma.user.update({ data: req.body }). Add fields the UI
never sends: role, isAdmin, is_staff, plan, tier, credits, balance,
verified, emailVerified, orgId, ownerId.
- Get the legitimate field set from the bundle FIRST, then add one field to a real request. Never guess field names one at a time — that is brute force and most programs ban it. → hunt-rbac (mass assignment section).
4. IDOR everywhere
Ownership checks are the most commonly omitted line of code. Sequential integer
IDs are common because the LLM scaffolded autoincrement().
→ hunt-idor.
5. Secrets in the client bundle
LLMs freely put keys in frontend code and NEXT_PUBLIC_* env vars.
- Triage by key TYPE before claiming anything: publishable/anon/site keys
(
pk_live_, Firebase apiKey, hCaptcha site keys, analytics ingest keys) are public by design and NOT findings. Wolt'sGATEKEEPER_API_KEYturned out to be an Avo analytics ingest key — the env literally renamed itANALYTICS_API_PUBLIC_KEY. Read the surrounding code before reporting. - Real findings:
sk_live_,service_role, SMTP creds, cloud IAM keys, DB URIs, private signing keys, admin API tokens.
6. Unverified webhooks & client-trusted commerce
- Stripe/PayPal webhook handlers that skip signature verification → forge
payment_succeededand grant yourself paid state. - Price, quantity, discount, or
totalaccepted from the client. - Order state transitions with no server-side validation. These are high-impact and frequently in scope where "business logic" is listed.
7. LLM features in the product (the newest surface)
If the vibe-coded app itself ships an AI feature, that feature is its own target:
- Prompt injection to make the assistant call tools or reveal its system prompt.
- Indirect injection via content the model ingests (uploaded file, scraped URL, support ticket) — a close cousin of stored/blind XSS; see hunt-bxss.
- The AI's "fetch this URL / summarize this link" feature is a server-side fetcher → run hunt-ssrf.
- Model output rendered as HTML/markdown without sanitization → hunt-xss.
- Unauthenticated or unmetered inference endpoints: cost abuse. Frame as business impact, not "no rate limiting" (which most programs explicitly refuse).
8. Injection where the LLM hand-rolled a query
- Template-interpolated SQL in
$queryRaw/db.execute. - NoSQL injection where the body is passed to a Mongo filter:
{"$ne":null},{"$gt":""}in login fields. - Command injection in scaffolded file/image/PDF processing → hunt-rce.
Rules of engagement (these do not relax because the target is sloppy)
A weak target is not permission to be reckless — it is a reason to be more careful, because unsafe actions actually succeed here.
- Confirm the boundary, then STOP. Never mass-dump a table to prove RLS is off; a count or a single cross-tenant row is sufficient evidence.
- Never exercise leaked credentials against real data (feedback_leaked-creds-roe).
- Writes go to your own account or program-provided test entities only. Prefer a read-only or true no-op probe when one tests the same boundary.
- Destructive verbs (DELETE, payout, cancel) are off-limits even when they look open.
- Resolve the host and confirm it is in scope before sending anything. Generated bundles routinely reference third-party and parent-company domains.
- Do not guess field or endpoint names in a loop — that is brute force. Harvest the real names from the bundle, source map, or a captured request first.
Reporting
Impact first, provenance never. Do not write "this looks AI-generated" in a report — it reads as an insult, it is unprovable, and triagers discount it. Report the concrete broken control and its business impact. Gate every finding through triage-finding, then write-report. Missing authz on an admin action and open RLS are genuinely High/Critical when demonstrated with a clean cross-account or cross-tenant proof — so build that proof properly rather than leaning on how easy it was to find.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

