What do I get?
Prompts, Skills & Knowledge Packs. Download of the files after payment. Commercial use license. Documentation included. SKILL.md. scripts.
This listing has not been audited by AIMarket24. We haven't verified that the code or workflow works as described. Confirm the file – you have 3 days to open a dispute if the file does not match the listing. This does not limit your statutory rights.
The security review your AI coding agent skipped: RLS, webhooks, leaked keys, open routes.
The seller has not added a screenshot.
The security review an AI coding agent skipped. Point it at a Next.js / Supabase / Node app and get the file and line of each mistake agents make most: tables without row-level security, half-written RLS policies, keys in source, privileged keys shipped to the browser, unverified webhooks, write routes with no auth. An agent skill for Claude Code, Codex, Cursor and any agent that reads SKILL.md; also a plain CLI. Ported from a production data tool; 130 test checks (`npm test`). ## What's inside | File | Purpose | |---|---| | `SKILL.md` | when to use it, how to read the findings | | `scripts/preflight.mjs` | the command (local folder or public GitHub repo) | | `scripts/lib/` | the 13 rules, file selection, coverage report, GitHub fetch | | `scripts/make-demo.mjs` | writes a small deliberately broken app (fake keys) to try it on | | `examples/sample-output.md` | real runs on the demo app and on a public Vercel starter | ## Requirements Node 18+. No packages, no accounts. Optional `GITHUB_TOKEN` for scanning large public repos. ## Honest limits Pattern matching over source text: a finding can be handled somewhere this file cannot see (middleware, a wrapper, a database policy created in the dashboard). Every finding says what to confirm. It does not run the app, scan dependencies (use ship-check for that) or replace a penetration test. ## Real sample output ## A deliberately broken demo app (made by `node scripts/make-demo.mjs`, all keys fake) ``` $ node scripts/make-demo.mjs && node scripts/preflight.mjs preflight-demo-app ──────────────────────────────────────────────────────────────────────── App Security Preflight: preflight-demo-app ──────────────────────────────────────────────────────────────────────── 6/6 files read · 13 rules · verdict: findings 🔴 4 critical · 🟠 3 high · 🟡 0 medium · ⚪ 0 low 🔴 CRITICAL Webhook endpoint that accepts a body without checking its signature app/api/webhooks/stripe/route.ts:1 > export async function POST(request: Request) { why: Anyone who can find the URL can POST to it. check: Confirm the signature is not checked in shared middleware or a wrapper this file cannot see, and that the check follows the provider's own construction (Stripe, GitHub and Shopify each differ). 🔴 CRITICAL Privileged key read inside client-side code app/components/Admin.tsx:3 > const supabase = createClient(process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.SUPABASE_SERVICE_ROLE_KEY!); why: Client code is delivered to the browser and the value is compiled into it. check: Confirm the file really ships to the browser — a `use client` marker at the top of a Next.js server component is a mistake too — and that the name is not a public publishable key. 🔴 CRITICAL Credential written into source app/config.ts:1 > export const mailer = { api_key: "Zx8***" }; why: A key committed to a repository is published to everyone who can read it, and to every clone, fork and CI log that ever existed. check: Check whether the value is a live credential and, if so, revoke and re-issue it — removing the line does not un-leak it. 🔴 CRITICAL Table created with no row-level security supabase/migrations/001_init.sql:1 (table todos) > create table todos (id uuid primary key, owner uuid, title text); why: With row-level security off, anyone holding the app's public database key can read and write every row — the app's own users are not the boundary. check: Confirm whether this migration is the live schema, and whether access is instead gated by a proxy, a server-only key or a view. 🟠 HIGH Write endpoint with no identity check in the file app/api/todos/route.ts:4 > await db.from("todos").delete().eq("id", id); why: The pattern an agent reaches for when it wants the client to work: take the payload, write it, return the result. check: Check the framework's middleware, route guards and any auth wrapper around this handler. 🟠 HIGH Untrusted value passed to the DOM as HTML app/components/Admin.tsx:5 > return <div dangerouslySetInnerHTML={{ __html: bio }} />; why: Handing a string to the parser as markup turns whatever it contains into script that runs with the page's own privileges, including its session. check: Find where the value originates and whether anything sanitises it on the way (DOMPurify, a server-side allowlist, a markdown renderer with HTML disabled). 🟠 HIGH Row-level security on, but no policy covers every operation supabase/migrations/001_init.sql:3 (table invoices, missing: insert, update, delete) > alter table invoices enable row level security; why: Enabling RLS with no policy blocks writes entirely, and enabling it with a read policy only leaves the other three operations closed — both are failures, in opposite directions. check: Confirm the intended policy for each missing operation, and read the `using`/`with check` expressions of the policies that do exist: a policy that says `using (true)` is open to every authenticated user, whatever it is named. Patterns in source, not proven exploits: each finding says what a human must confirm. Nothing was run. ``` ## A real public starter: Vercel's Next.js + Supabase subscription template (high and above) ``` $ node scripts/preflight.mjs --repo vercel/nextjs-subscription-payments --min-severity high ──────────────────────────────────────────────────────────────────────── App Security Preflight: vercel/nextjs-subscription-payments ──────────────────────────────────────────────────────────────────────── 78/90 files read · 13 rules · verdict: findings 🔴 0 critical · 🟠 10 high · 🟡 0 medium · ⚪ 0 low 🟠 HIGH Row-level security on, but no policy covers every operation schema.sql:15 (table users, missing: insert, delete) > alter table users enable row level security; why: Enabling RLS with no policy blocks writes entirely, and enabling it with a read policy only leaves the other three operations closed — both are failures, in opposite directions. check: Confirm the intended policy for each missing operation, and read the `using`/`with check` expressions of the policies that do exist: a policy that says `using (true)` is open to every authenticated user, whatever it is named. 🟠 HIGH Row-level security on, but no policy covers every operation schema.sql:44 (table customers, missing: select, insert, update, delete) > alter table customers enable row level security; why: Enabling RLS with no policy blocks writes entirely, and enabling it with a read policy only leaves the other three operations closed — both are failures, in opposite directions. check: Confirm the intended policy for each missing operation, and read the `using`/`with check` expressions of the policies that do exist: a policy that says `using (true)` is open to every authenticated user, whatever it is named. 🟠 HIGH Row-level security on, but no policy covers every operation schema.sql:65 (table products, missing: insert, update, delete) > alter table products enable row level security; why: Enabling RLS with no policy blocks writes entirely, and enabling it with a read policy only leaves the other three operations closed — both are failures, in opposite directions. check: Confirm the intended policy for each missing operation, and read the `using`/`with check` expressions of the policies that do exist: a policy that says `using (true)` is open to every authenticated user, whatever it is named. 🟠 HIGH Row-level security on, but no policy covers every operation schema.sql:98 (table prices, missing: insert, update, delete) > alter table prices enable row level security; why: Enabling RLS with no policy blocks writes entirely, and enabling it with a read policy only leaves the other three operations closed — both are failures, in opposite directions. check: Confirm the intended policy for each missing operation, and read the `using`/`with check` expressions of the policies that do exist: a policy that says `using (true)` is open to every authenticated user, whatever it is named. … (10 high findings in total; most are RLS policy gaps on tables the template writes only from the server. The "check" line says what to confirm.) ```
AI-built apps ship with Supabase tables anyone can read, unverified payment webhooks and keys in the browser, and nobody reviews them.
Pattern review over source text: a check done in middleware or the database dashboard is invisible to it, so each finding says what to confirm. Not a pentest; dependencies are not scanned.
Prompts, Skills & Knowledge Packs. Download of the files after payment. Commercial use license. Documentation included. SKILL.md. scripts.
$19.00 total. The price shown is the total you pay.
You pay on Stripe. The seller is paid 7 full days after confirmed payment and full delivery, if no dispute is open. You can open a dispute from the order page before the seller is paid.
This listing has not been audited by AIMarket24. We haven't verified that the code or workflow works as described. Confirm the file – you have 3 days to open a dispute if the file does not match the listing. This does not limit your statutory rights.