# RescueMyRepo > RescueMyRepo (https://rescuemyrepo.com) is an automated launch-readiness and security scanner for apps built with AI coding tools such as Lovable, Bolt, Cursor, Replit and v0. Paste a public GitHub repo URL and it returns an A–F launch grade plus the security and reliability problems AI-generated code most often ships with: leaked API keys, open Supabase databases (missing row-level security), unverified Stripe and other webhooks, unauthenticated AI endpoints that can run up a bill, and known-vulnerable dependencies. Each finding comes with a copy-paste fix prompt for the user's AI tool. The free Quick Check needs no signup. RescueMyRepo is automated static analysis, not a manual penetration test or a full security audit. A clean grade does not guarantee an app is secure. ## Product - [Home: what it checks, sample report, pricing, FAQ](https://rescuemyrepo.com/): overview of the scanner and the $29 Rescue Report - [Free scan](https://rescuemyrepo.com/scan): paste a public GitHub repo URL; results usually arrive in about a minute - [Pricing](https://rescuemyrepo.com/#pricing): one-time payments, no subscription - [FAQ](https://rescuemyrepo.com/#faq): data handling, supported stacks, private repos, what the report contains - [Free Supabase RLS policy checker](https://rescuemyrepo.com/tools/supabase-rls-checker): run one read-only SQL query in the Supabase SQL editor (it reads only the catalog: tables, RLS on/off, anon and authenticated grants via has_any_column_privilege/has_table_privilege, view security_invoker, and pg_policies), paste the JSON result, and get ranked findings with fix SQL: tables with RLS off that anon/authenticated can reach (policies on them are ignored), using (true) / with check (true) policies (critical for anon UPDATE/DELETE/ALL, high for reads of private-looking tables, info for public content like products and prices), login-only policies (auth.uid() is not null, auth.role() = 'authenticated'), "auth.uid() is null" branches, columns compared with themselves (incl. subquery shadowing stored as m.org_id = m.org_id), policies that trust user_metadata, views without security_invoker and materialized views readable through the API. Restrictive and service_role-only policies are skipped; findings account for grants (a using (true) policy on a table anon has no grant on only exposes it to signed-in users). Runs entirely in the browser; nothing pasted is uploaded. Also accepts a plain pg_policies JSON export. Added Dec 4, 2026. ## Guides - [All guides](https://rescuemyrepo.com/guides): index of RescueMyRepo security guides for AI-built apps - [Using Drizzle or Prisma with Supabase? Your RLS policies don't protect those queries](https://rescuemyrepo.com/guides/drizzle-prisma-supabase-rls-bypass): Drizzle and Prisma connect with DATABASE_URL, which on Supabase logs in as postgres (the table owner; Supabase's RLS docs: "postgres, which has bypassrls"), and Supabase's Prisma quickstart creates its prisma user with bypassrls. PostgreSQL's row security docs: superusers and BYPASSRLS roles always bypass row security, and table owners do unless FORCE ROW LEVEL SECURITY is set. auth.uid() is null in that session, so auth.uid() policies never run for ORM queries and each query's WHERE clause is the only guard between users. Includes a query to check your connection role and table owners, Fix 1 (filter every query by the user id from a server-verified session, including updates and deletes), Fix 2 (the Drizzle RLS docs pattern: a transaction with set local role authenticated and set_config('request.jwt.claims', ..., true)), a two-user SQL test and an AI prompt. Reproduced on PostgreSQL 17: owner and BYPASSRLS roles saw all rows, the RLS transaction saw only the user's row, FORCE stopped the owner but not the BYPASSRLS role. The free scan flags it (published Dec 3, 2026). Sources: Supabase RLS, roles, Drizzle and Prisma docs, Drizzle RLS docs, PostgreSQL Row Security Policies. - [RLS is on and your Supabase data still leaks: 5 policy mistakes to check](https://rescuemyrepo.com/guides/supabase-rls-enabled-still-leaks): enabling Row Level Security only means policies decide; one policy that is true for every row opens the table, because permissive policies are combined with OR (PostgreSQL CREATE POLICY docs). The 5 mistakes: using (true) on private data; login-only checks (auth.uid() is not null, auth.role() = 'authenticated') on per-user tables; an "or auth.uid() is null" branch (Supabase RLS docs: auth.uid() is null for every anon request, so the branch "returns every row to any request without a user ID"; to authenticated alone isn't enough because an authenticated JWT without sub still passes); a column compared with itself (user_id = user_id); and a subquery such as exists (select 1 from org_members m where m.org_id = org_id ...) where the bare org_id resolves to m.org_id (PostgreSQL resolves unqualified names in the innermost FROM first, per the Table Expressions docs), so any member of any org reads every row; pg_policies prints it as (m.org_id = m.org_id). Includes a pg_policies shortlist query, fixed policies (qualify projects.org_id or use org_id in (select m.org_id ...)), a separate read-only policy for public rows, a transaction test as two users and anon, and an AI prompt. Mistakes 3-5 reproduced on PostgreSQL 17. The free scan flags all 5 from SQL migrations (published Dec 2, 2026). Sources: Supabase RLS docs, PostgreSQL CREATE POLICY and Table Expressions docs. - [Is it safe to commit or push your Supabase anon key? (and the key you must never push)](https://rescuemyrepo.com/guides/supabase-anon-key-safe-to-commit): yes for the anon key and the newer sb_publishable_ key. Supabase's API keys docs call the publishable key safe to expose online (web pages, mobile apps, GitHub Actions, CLIs, source code); requests with it run as the anon role (signed out) or authenticated role (signed in), so Row Level Security and table grants are what protect data. Never for the service_role JWT or sb_secret_ keys: both map to the service_role Postgres role, which has BYPASSRLS. Secret keys return 401 when Supabase sees a browser User-Agent, but still work from curl or scripts. How to tell keys apart (prefix, or decode a legacy eyJ JWT and read the role claim), a signed-out curl test per table (use a table route; GET /rest/v1/ only accepts secret keys), grep for sb_secret_/service_role in files and git history, server-only env vars, and rotation (create a new secret key in Settings > API Keys, switch, delete the old one; for a legacy service_role key deactivate legacy keys and revoke the legacy JWT secret). Legacy anon/service_role keys are being deprecated in early 2027 per Supabase docs. Published Dec 1, 2026. Sources: Supabase docs (API keys, Row Level Security, Securing your API, Rotate a leaked API key, Migrating to new API keys). - [Does your vibe-coded app store passwords in plain text? Check your homemade login](https://rescuemyrepo.com/guides/plaintext-passwords-homemade-login): AI builders sometimes create their own login (a users table with a password column and a query like .eq("password", password) or WHERE password = $2) instead of Supabase Auth. An equality match only works if the password is stored as typed (or as an unsalted fast hash); from browser code the table must also be readable with the public anon key, so anyone can download every email and password. Check: grep for password-equality queries, inserts of a password field and password text columns, then query the table with only the anon key. Fix: supabase.auth.signUp / signInWithPassword (Supabase Auth stores bcrypt hashes in auth.users) with a profiles table keyed by auth.uid(), or hash server-side per the OWASP Password Storage Cheat Sheet (Argon2id with at least 19 MiB memory, 2 iterations, parallelism 1; scrypt; bcrypt cost 10+ with a 72-byte limit; PBKDF2 600,000+ iterations for FIPS) and verify with the library after loading the user by email. Migrate users with resetPasswordForEmail or a one-time server-side auth.admin.createUser script, then drop the column and delete exports/backups that contain it. The free scan flags password-equality queries, raw password inserts and unhashed password columns (published Nov 30, 2026). Sources: OWASP Password Storage Cheat Sheet, Supabase password auth docs, Supabase Auth source. - [Your Supabase function skips RLS and anyone can call it: lock down SECURITY DEFINER rpc](https://rescuemyrepo.com/guides/supabase-security-definer-rpc): a SECURITY DEFINER function runs as its owner; Supabase's database functions docs (read Nov 27, 2026) say a function created in the Dashboard or by a migration "is owned by postgres, which bypasses Row Level Security. Any role can call it by default, including anon." PostgreSQL grants EXECUTE on new functions to PUBLIC and Supabase also grants anon/authenticated, so the function is reachable at POST /rest/v1/rpc/ with only the anon key (Security Advisor lints 0028/0029). Find: query pg_proc for prosecdef functions in public with has_function_privilege('anon', oid, 'execute'), skipping trigger functions. Fix: alter function ... security invoker when definer rights aren't needed; otherwise revoke execute from public and anon (revoking from anon alone leaves PUBLIC and authenticated) and grant only to roles that need it, check (select auth.uid()) in the body, and set search_path = '' (which doesn't change who can call it); move RLS helpers such as has_role to a private schema with usage + execute for authenticated; set default privileges (global revoke from public, in-schema revoke from anon/authenticated). The free scan flags exposed SECURITY DEFINER functions from SQL migrations (published Nov 27, 2026). Sources: Supabase database functions docs, Supabase Advisors 0028/0029, PostgreSQL CREATE FUNCTION docs. - [Supabase form says "Saved" but nothing saved? Fix the silent RLS update](https://rescuemyrepo.com/guides/supabase-update-saved-but-not-saved): when Row Level Security filters a row out of an UPDATE, Postgres updates zero rows and reports no error (PostgreSQL CREATE POLICY docs: rows failing USING are "silently suppressed"; Supabase RLS docs: a USING clause filtering the row out "raises nothing, matches zero rows", while a missing grant or WITH CHECK violation raises 42501). supabase-js .update() returns no rows by default (Supabase JS docs), so code like if (!error) toast("Saved") reports success. Most common cause: an UPDATE policy with no SELECT policy (Supabase docs: "To perform an UPDATE operation, a corresponding SELECT policy is required"); others: auth.uid() compared to the wrong column, NULL owner columns, a signed-out (anon) request, an undefined filter value, a restrictive-only policy. Fix: chain .select("id") and treat an empty result as a failed save; list pg_policies for the table; add an owner-scoped SELECT policy plus UPDATE using + with check on the same owner column; re-test in a transaction with set local role authenticated and request.jwt.claim.sub using UPDATE ... RETURNING. Never fix it by disabling RLS, using (true) or a service_role key in the browser. Upserts error instead of skipping when the existing row fails the UPDATE policy (published Nov 26, 2026). Sources: Supabase RLS and JavaScript update docs, PostgreSQL CREATE POLICY docs. - [Opening a repo can run code: check .vscode/tasks.json for folderOpen tasks first](https://rescuemyrepo.com/guides/vscode-tasks-json-folderopen): per the VS Code tasks docs (read Nov 25, 2026), a task with runOptions.runOn "folderOpen" in .vscode/tasks.json or a *.code-workspace file runs its shell command when the folder is opened. VS Code never runs automatic tasks in an untrusted workspace and task.allowAutomaticTasks defaults to "off" (one Allow/Disallow prompt per workspace); Cursor's docs say Workspace Trust is disabled by default, so every folder is trusted, and Oasis Security (Sep 2025, updated May 2026) showed a folderOpen task running curl on open in Cursor. 1-minute check: grep -rn --include=tasks.json --include='*.code-workspace' folderOpen . before opening, read command/args for red flags (curl/wget/Invoke-WebRequest, | sh, node -e, base64/-EncodedCommand, ~/.ssh or .env paths, node running a .woff/.png file, padded commands), git log -p --follow to see who added it. Fix: set task.allowAutomaticTasks "off", enable security.workspace.trust.enabled in Cursor, make wanted tasks opt-in (no runOptions); if a planted task ran, rotate keys from a clean device and check your other repos for planted agent/editor files (published Nov 25, 2026). Sources: VS Code tasks and Workspace Trust docs, Cursor agent security docs, Oasis Security. - [Lovable drafts can touch your live app: a safety checklist before you test or accept](https://rescuemyrepo.com/guides/lovable-drafts-live-data): per Lovable's drafts docs (read Nov 24, 2026), secrets and connected services use their live values in every draft (drafts can't use separate test values), so a checkout with your own Stripe account and a live key is a real payment and emails sent through a connected service are real (built-in payments use test mode in drafts). A draft shares your live backend when the project uses your own Supabase project or when Lovable can't set up a draft backend; no 'viewing example data' banner above the preview means data changes are live and deleting the draft doesn't undo them. Accepting a draft changes live database structure (tables, columns, rules about who can read or change data, i.e. RLS), backend functions and storage settings immediately, before Publish, and Lovable takes no database backup on accept (version-history restore doesn't restore the database). Drafts start from the example data file db/seed.sql, which is code; live rows copied into it reach GitHub via Git sync once the draft is accepted. Checklist: check the banner, assume secrets are live, test payments in a separate project with Stripe test keys, keep real personal data out of db/seed.sql, ask Lovable to list every policy/table/function change and export the database before Accept, publish right after, re-test logged out. The free scan flags seed/example-data files containing personal-looking email addresses and phone numbers (added Nov 24, 2026) (published Nov 24, 2026). Sources: Lovable drafts docs, Stripe testing docs, GitHub docs on removing sensitive data. - [Can a bot drain your OpenAI credits? Lock down the AI endpoint in your vibe-coded app](https://rescuemyrepo.com/guides/stop-bots-draining-ai-credits): moving the AI key to a server route or Supabase Edge Function is not enough if the endpoint has no real user check and no per-user limit (OWASP API4 unrestricted resource consumption, "denial of wallet"). Supabase's default verify_jwt accepts the public anon key, so it does not identify a user. Supabase anonymous sign-ins (signInAnonymously(), enable_anonymous_sign_ins = true) give anonymous users the authenticated role and a real session, so a getUser() check passes for them and a bot can mint a new anonymous user per request (Supabase limits anonymous sign-ins to 30/hour per IP by default and recommends CAPTCHA/Turnstile). Test (own app only): call the endpoint logged out and as an anonymous user; both must return 401/403. Fix: verify the user server-side and reject user.is_anonymous; per-user rate limit (e.g. 20/hour) via a Postgres usage table with a security definer function only the service role can execute, or Upstash Ratelimit; return 429; cap max_tokens and input length; set a monthly budget, alerts and per-project keys at the AI provider. The free scan flags AI routes with no user check (high), no rate limit (medium), and routes that accept anonymous Supabase users when the app enables anonymous sign-ins (medium, added Nov 23, 2026) (published Nov 23, 2026). Sources: Supabase anonymous sign-ins, Edge Function auth and Auth rate limits docs, Upstash Ratelimit docs, OWASP API Security Top 10 2023. - [Can your users make themselves admin? Lock the role column in your Supabase profiles table](https://rescuemyrepo.com/guides/supabase-profile-role-self-update): Row Level Security decides which rows a user can change, not which columns (Supabase docs: an owner UPDATE policy gives the owner full access to update the row, including all of the columns). AI tools often add role, is_admin, plan, subscription_status or credits to the same profiles table that has an "update own profile" policy (using auth.uid() = id), so any signed-in user can run supabase.from('profiles').update({ role: 'admin' }).eq('id', user.id) and promote themselves; an owner INSERT policy has the same problem when the browser creates the row (column defaults do not stop a client-supplied value). Test (own app, throwaway test user only): run that update and check whether the value saved. Fix: (1, recommended by Supabase) move roles/plans/credits to a user_roles or subscriptions table with a SELECT-own-row policy and no client insert/update policies, written only server-side with the service_role key (e.g. the Stripe webhook); (2) revoke the table-level UPDATE from anon and authenticated, then grant update only on safe columns (revoking just the column does nothing while the table-level grant exists); (3) a BEFORE UPDATE trigger that raises when these columns change and current_user is anon or authenticated. The free scan flags user/profile/account/member tables with these columns plus an owner update (high) or insert (medium) policy, from SQL migrations, and skips column-grant, OLD-comparing trigger, pinned with-check and dropped-policy cases (published Nov 19, 2026). Sources: Supabase Column Level Security, RLS and RBAC docs, PostgreSQL GRANT docs. - [Is your OpenAI or Stripe secret key in your frontend? Find it in 60 seconds and fix it](https://rescuemyrepo.com/guides/api-key-exposed-in-frontend): variables prefixed VITE_, NEXT_PUBLIC_, REACT_APP_ or EXPO_PUBLIC_ are inlined into the JavaScript every visitor downloads (Vite docs: VITE_ variables should not contain sensitive information; Next.js inlines NEXT_PUBLIC_ at build time), and AI tools often add the prefix or set the OpenAI SDK's dangerouslyAllowBrowser: true to make a failing call work. Fine to be public: Supabase anon/sb_publishable_ key (with RLS), Stripe pk_ keys, Firebase web config, referrer-restricted Google Maps keys. Never public: OpenAI sk-/Anthropic sk-ant-/xAI xai-/Groq gsk_/Gemini keys, Stripe sk_/rk_ keys and whsec_ secrets, Supabase service_role JWT or sb_secret_ keys (sb_secret_ keys return 401 to browser User-Agents but still work from scripts), email/SMS tokens, database URLs. Check (own site only): DevTools search across sources for sk-, sk_live_, rk_live_, sb_secret_, xai-, or a curl script that downloads the homepage scripts and greps key prefixes and decodes JWT roles; check the repo and git history (git log -p --all -S). Fix: drop the public prefix and call the provider from a server route (Next.js route handler with import "server-only") or a Supabase Edge Function (supabase secrets set) that requires a signed-in user and rate-limits; then rotate the key (new key first, revoke old, check usage, set AI spend limits). The free scan flags public-prefixed secret vars, hardcoded service_role JWTs, service-role env in browser code, dangerouslyAllowBrowser, committed .env files and keys in git history; it reads the repo, not the live bundle (published Nov 17, 2026). Sources: Vite, Next.js, Expo, Supabase API keys and Edge Function secrets docs, openai-node, Stripe API keys, GitHub push protection docs. - [Your Supabase RLS is on, but a view leaks every row: fix it with security_invoker](https://rescuemyrepo.com/guides/supabase-views-bypass-rls): Postgres views run with the view owner's privileges by default (Supabase calls it an unintuitive default kept for backwards compatibility), and views created by migrations or the SQL editor are usually owned by postgres, which bypasses RLS. A view in the public schema over an RLS-protected table is reachable through the Data API with the public anon key and returns every row (Security Advisor lint 0010 security_definer_view, level ERROR). Find: Security Advisor, or query pg_class for relkind 'v' in public whose reloptions lack security_invoker=true. Test (own project only): GET /rest/v1/?select=*&limit=5 with only the anon key. Fix: a migration with alter view public. set (security_invoker = true) (Postgres 15+), or create views with (security_invoker = true); then add explicit SELECT policies for rows meant to be shared and keep private columns out (RLS filters rows, not columns; use a separate table or column grants). Materialized views can't apply RLS: revoke select from public, anon, authenticated (lint 0016). Views over auth.users in public expose every account (lint 0002): use a trigger-filled public.profiles table. The free scan flags public views over RLS tables without security_invoker from SQL migrations (published Nov 16, 2026). Sources: Supabase Advisors docs (0002, 0010, 0016), PostgreSQL CREATE VIEW docs, Supabase RLS docs. - [Can anyone fake a Stripe payment in your AI-built app? Test your webhook in 1 minute](https://rescuemyrepo.com/guides/stripe-webhook-signature-verification): a Stripe webhook URL is public, so a handler that does not verify the Stripe-Signature header against the raw request body with the endpoint's whsec_ secret lets anyone POST a forged checkout.session.completed and unlock a paid plan. Test (own app only): curl a fake unsigned event and one with "stripe-signature: t=1,v1=00"; both must return 4xx. Common AI-tool mistakes: no verification, verifying a parsed body (req.json()/express.json()), failing open (skip when header/secret missing, catch-and-continue), no idempotency (store event.id; Stripe retries up to 3 days in live mode), fulfilling while payment_status is unpaid (handle checkout.session.async_payment_succeeded). Fixes: Next.js req.text() + stripe.webhooks.constructEvent; Supabase Edge Functions constructEventAsync + Stripe.createSubtleCryptoProvider() deployed with --no-verify-jwt (so the signature is the only gate); Express express.raw() before express.json(); keep the default 5-minute tolerance, never 0. The free scan flags handlers without constructEvent and handlers verifying a parsed body (published Nov 13, 2026). Sources: Stripe webhooks, signatures and Checkout fulfillment docs; Supabase Stripe webhooks example. - [Supabase Realtime leaks: public channels and RLS-off tables anyone with your anon key can watch](https://rescuemyrepo.com/guides/supabase-realtime-security): Postgres Changes only filters row changes through RLS, so a table in the supabase_realtime publication with RLS off streams every insert and update live to anyone with the public anon key (and RLS is not applied to DELETE events). Broadcast and Presence channels created without `config: { private: true }` are public: anyone who knows the topic can listen and send; realtime.messages RLS policies only apply to private channels, and "Allow public access" in Realtime settings must be turned off to reject public channels. Check: query pg_publication_tables joined to pg_class.relrowsecurity; grep for supabase.channel( without private: true. Fix: enable RLS with owner-scoped SELECT policies or drop the table from the publication; private channels plus SELECT/INSERT policies on realtime.messages using realtime.topic() and realtime.messages.extension; never add ALTER TABLE realtime.messages ENABLE ROW LEVEL SECURITY (fails with 42501). The free scan flags both (published Nov 12, 2026). Sources: Supabase Realtime Authorization and Postgres Changes docs. - [Did Claude Code commit your secrets? Check .claude/settings.local.json in 2 minutes](https://rescuemyrepo.com/guides/claude-code-settings-local-json-secrets): Claude Code's "Yes, and don't ask again" saves the approved Bash command as a permissions.allow rule in .claude/settings.local.json at the repo root, sometimes verbatim with an inline password or API key. The file is only added to the global git excludes of the machine that first wrote it, so other clones, containers, hand-made files and already-tracked files can still be committed. Apiiro (Nov 5, 2026, via Ars Technica) found 104,185 public copies, 1,122 with likely real secrets (1,379 secrets; 2,539 across 1,994 repos counting history, settings.json and transcripts), including 379 database passwords and 122 Supabase service_role keys; gitleaks + TruffleHog missed ~19% of those files; credentials were not tested. Check: git ls-files | grep .claude/, git log --all -- '*.claude/settings.local.json', grep the file and git log -p. Fix order: rotate first, then git rm --cached, add to repo .gitignore, delete secret rules via /permissions, keep secrets in env vars. The free scan checks these files and their git history. Sources: Ars Technica, Claude Code settings and permissions docs, GitHub docs (published Nov 10, 2026, updated Nov 11, 2026). - [Hiding Pro features in the UI isn't a paywall: enforce paid plans in Supabase RLS](https://rescuemyrepo.com/guides/supabase-paywall-rls): when an AI-built app hides Pro content in React but the supabase-js query still returns it, free users can read Pro rows in DevTools or query them from the console. Test: sign in as a free user and query Pro rows directly. Fix: store the plan in a table users can read but not write (updated by a signature-verified Stripe webhook with service_role on the server) or in app_metadata, never user_metadata; enforce it in RLS policies or the server route that does the work, including credits and usage limits. Sources: Supabase and Stripe docs. - [Is your Lovable app one of the 7,403? Check your Supabase data isn't readable without a login](https://rescuemyrepo.com/guides/lovable-supabase-data-exposure): Crissy Field GmbH with Handelsblatt (Nov 2, 2026) analyzed 159,041 Lovable projects from Common Crawl; 34,545 used Supabase, 24,664 sent records on page load, and read-only requests found email-containing records in 10,560 tables across 7,403 sites (authors: not a confirmed leak rate). Cause is RLS off or permissive policies, not a breach; the anon key is public by design. Check: logged-out DevTools rest/v1 requests, Supabase Security Advisor, two-account test. Fix: enable RLS plus owner-scoped policies in one migration; never ship service_role to the browser. Sources: Crissy Field report, Supabase docs. - [Supabase October 30, 2026 change: fix "42501 permission denied" without turning off RLS](https://rescuemyrepo.com/guides/supabase-october-30-grant-change): from Oct 30, 2026, new tables in Supabase's public schema are not reachable through supabase-js / the REST and GraphQL Data API until you GRANT access; existing tables keep their grants. Safe fix = GRANT + ENABLE ROW LEVEL SECURITY + owner-scoped policies in one migration; never disable RLS, never paper over 42501 with GRANT ALL (it also grants TRUNCATE, which RLS does not cover), and never ship the service_role key to the browser. The free scan lists tables the app queries with supabase.from() whose migrations never GRANT access to anon/authenticated (updated Oct 28, 2026). Sources: Supabase changelog and docs. - [Don't store roles in Supabase user_metadata: any logged-in user can make themselves admin](https://rescuemyrepo.com/guides/supabase-user-metadata-roles): user_metadata (raw_user_meta_data) is editable by the signed-in user via supabase.auth.updateUser(), so RLS policies (auth.jwt() -> 'user_metadata'), handle_new_user triggers and server routes must not read role/is_admin/plan from it. Fix = roles table with RLS and no client writes, or app_metadata set server-side with service_role; test by calling updateUser({ data: { role: "admin" } }) as a normal user. Sources: Supabase docs. ## Pricing (as published on rescuemyrepo.com) - Quick Check: free. Launch grade A–F, issue counts by severity, the most serious finding previewed, and the title and severity of every issue found. Public GitHub repos only. - Rescue Report: $29 one-time. Every finding with file and line, severity and plain-English impact; a copy-paste fix prompt for Lovable/Cursor for each issue; an AI review pass that double-checks high-impact findings and filters likely false positives; a plain-English summary with the top 3 actions; viewable online or downloadable as a standalone HTML file. Payment is by Stripe Checkout. - Report + Fix PRs: $49, coming soon (not for sale yet). Would open pull requests for critical and high issues and support private repos through a read-only GitHub App. ## What the scanner checks - Leaked secrets: API keys in client bundles and frontend code, committed .env files, Supabase service_role keys in code or referenced from client code, Supabase secret keys (sb_secret_) hardcoded in code or still in git history after removal (added Dec 1, 2026; public anon and sb_publishable_ keys are not flagged), secrets placed in browser-exposed env vars (VITE_*, NEXT_PUBLIC_*), secrets that were committed in git history and later deleted (gitleaks scans every commit of the default branch), and API keys or tokens saved in committed AI coding agent configs (Claude Code `.claude/settings.local.json` approved commands, `.mcp.json` / `.cursor/mcp.json` MCP server tokens), which general secret scanners often miss; earlier versions of those agent config files in git history are checked too, so keys in a settings.local.json that was later deleted or cleaned are still reported with the commit (added Nov 11, 2026). - Open database (Supabase): tables without row-level security (RLS disabled or never enabled), permissive "allow all" policies such as `using (true)`, write grants to the anon role, tables the app queries via supabase-js that have no GRANT to anon/authenticated in migrations (they fail with 42501 "permission denied" after Supabase's October 30, 2026 Data API change on new projects, branches and fresh environments), views in the public schema that read RLS-protected tables without `security_invoker = true` (they run as the view owner, usually `postgres`, so anyone with the anon key can read every row through the Data API), public storage buckets, SECURITY DEFINER functions without a fixed search_path, tables streamed by the supabase_realtime publication (including `for all tables`) without RLS and Broadcast/Presence channels opened in browser code without `private: true` (added Nov 12, 2026), and roles, admin flags or paid plans read from user-editable user_metadata (for example a handle_new_user trigger that copies the role from signup data, or an RLS policy that trusts auth.jwt() -> 'user_metadata'). - Payments: Stripe webhook handlers that skip signature verification or parse the body before verifying it, and Stripe secret keys committed to the repo or exposed to the browser. - Inbound webhooks: unverified webhook handlers for Telegram, GitHub, Clerk, Resend, Twilio, Slack, Lemon Squeezy and Paddle. - AI cost bombs: AI/LLM routes callable without a logged-in user, AI routes with no rate limit, AI routes that let Supabase anonymous users through when the app enables anonymous sign-ins (added Nov 23, 2026), and OpenAI/Anthropic/xAI SDKs called from the browser with the developer's key. - Dependencies and deploy: known-vulnerable npm packages (OSV-Scanner); the critical Vite dev-server remote code execution advisory GHSA-p4f5-76q4-ffq7 (published Nov 10, 2026: a crafted request to a network-exposed `vite` dev server can read files outside the project and run code; affected vite 4.0.0-6.4.5, 7.0.0-7.3.7, 8.0.0-8.1.6, 8.2.0-8.2.4, 8.3.0-8.3.6 and vite-plus <=1.5.0; fixed in 6.4.6, 7.3.8, 8.1.7, 8.2.5, 8.3.7, vite-plus 1.5.1), read from package-lock.json, pnpm-lock.yaml, yarn.lock or bun.lock and raised to high when the dev server is exposed with `--host` or `server.host` (Lovable's default vite.config uses host "::"; production `vite build` output is not affected; added Nov 20, 2026); missing or multiple lockfiles, missing build script, single-page apps without rewrite rules, undocumented environment variables, large assets. - Plain-text passwords: homemade logins that compare a password column in the query (.eq("password", ...), .match({ email, password }), WHERE password = $2, Firestore where("password", "==")), critical from browser code and high on the server; raw passwords inserted into app tables when the repo has no bcrypt/Argon2/scrypt/PBKDF2 (high); a password text column with no hashing anywhere (medium, low confidence). Supabase Auth calls (signUp, signInWithPassword, updateUser) are not flagged (added Nov 30, 2026). - SECURITY DEFINER rpc exposure: SECURITY DEFINER functions in the public schema that anon (or every signed-in user) can still execute after replaying migrations in order (creates, drops, security invoker changes, grants/revokes, default privileges); high when the function writes data or returns rows with no auth.uid()/auth.jwt() check, medium when only signed-in users can call it, low for single-value helpers, auth-checked or explicitly anon-granted functions; trigger functions skipped (added Nov 27, 2026). - ORM queries that skip RLS: Drizzle or Prisma queries in server code on tables whose RLS policies use auth.uid()/auth.jwt() (SQL migrations or Drizzle pgPolicy), run over a direct Postgres connection with no RLS transaction (no set local role / request.jwt.claims); high when a query on such a table has no WHERE, medium when all are filtered, low confidence when the example DATABASE_URL uses a custom database user; tests, scripts, seeds and migrations skipped (added Dec 3, 2026). - RLS on but still leaking: policies whose condition is always true, i.e. an `auth.uid() is null` branch (critical on writes open to anon, high on per-user reads), a column compared with itself (`user_id = user_id`), or a subquery comparison like `m.org_id = org_id` where the bare column resolves to the subquery's own table (cross-tenant leak, high); restrictive and service_role policies are skipped and later DROP POLICY statements are applied (added Dec 2, 2026). - "Saved" but nothing saved: RLS-enabled tables with an UPDATE policy but no SELECT or ALL policy in SQL migrations (client updates match zero rows without an error); low-severity reliability finding (added Nov 26, 2026). - Editor autorun tasks: .vscode/tasks.json and *.code-workspace tasks with runOptions.runOn "folderOpen" (run when the folder is opened in VS Code or Cursor); high when the command downloads or sends data, pipes into a shell, runs inline or base64-encoded code, touches credential files, runs a font/image file with node, or is padded/very long; medium when the terminal is hidden; info for a plain dev-server task (added Nov 25, 2026). - Personal data: seed and example-data files (db/seed.sql, supabase/seed.sql, prisma/seed.ts, fixtures/users.json and similar) that contain several real-looking email addresses at consumer mail providers (and phone numbers), e.g. live rows copied into a Lovable draft's example data, which become public in a public repo (added Nov 24, 2026). - Risky code patterns: eval, dangerouslySetInnerHTML / innerHTML with dynamic content, SQL built by string concatenation, open redirects, wildcard CORS with credentials, JWTs decoded without verification, insecure random tokens, admin Supabase RPCs guarded only by a client-side filter, and client-side plan/role UI gates (e.g. `if (profile.plan === 'pro')`) flagged as a reminder to enforce the same check in RLS or a server route — not a claim that every UI-only paywall is detected. - Engines: semgrep, gitleaks, OSV-Scanner and 30+ custom rules for Supabase, Stripe and AI SDKs. ## Supported stacks Anything on GitHub, tuned for what AI app builders generate: React/Vite, Next.js, TanStack Start, Supabase, Stripe, and the OpenAI, Anthropic and xAI SDKs. Lovable, Bolt, v0, Cursor and Replit exports all work. ## Data handling Free scans clone the public repo into a temporary sandbox, run the scanners, and delete the clone. RescueMyRepo keeps the findings, not the source code. ## Contact - Email: hello@rescuemyrepo.com