Deutsch
Free tool

Security fix prompts for Lovable, Cursor, Bolt and Claude Code

Copy-ready prompts that fix the security holes and errors we see most in AI-built apps, each tested and linked to a page that shows how to check the fix.

Runs in your browser. Nothing you enter is sent anywhere.

Showing 41 of 41

How to use a fix prompt safely

Find the right prompt

Search for the problem or paste a few words of the error message. If you are not sure the problem applies to you, open its page first: each one shows how to confirm it in your own app.

Paste it and read the plan

Every prompt ends with “show me the change before applying it”. Read the migration or code your builder proposes. Stop if it disables row level security, adds a policy with true, uses the service role key in browser code or edits old migrations.

Apply it, then check it

Run the check from the prompt’s page, ideally as two different users. A fix that you have not checked is a guess.

A first pass over your whole app

Not sure where to start? This prompt asks your builder for an inventory, not a fix. It changes nothing, so it is safe to run on any project. Then pick the matching prompts above for what it finds.

Security inventory: list risks, change nothing

Do not change any code or database objects. Review this project and list, as a table with file and line:

  1. Every table in the public schema, whether row level security is enabled, and its policies for select, insert, update and delete. Flag policies that use true, auth.uid() is not null or auth.role() = ‘authenticated’.
  2. Every place a secret is used: the Supabase service role or secret key, Stripe secret or webhook keys, OpenAI or Anthropic keys. Flag any that are read in browser code or in a variable starting with VITE_, NEXT_PUBLIC_ or PUBLIC_.
  3. Every Edge Function or API route: does it check the signed-in user, and does it trust a user id, price, plan or credit amount sent by the browser?
  4. Every check for admin rights, paid plans or credits that happens only in the frontend.
  5. Every storage bucket: public or private, and its policies.

For each item say what an attacker with only the public anon key could do. Do not suggest fixes yet.

Frequently asked questions

Which AI builders do the prompts work with?

Any builder that can read and change your project: Lovable, Bolt, Cursor, Claude Code, Windsurf or v0. They are written in plain English with the file types and Supabase features named, so the builder does not have to guess.

Why are the prompts so strict about what not to do?

Because AI builders tend to make an error disappear the quickest way, and the quickest way is often to switch a protection off: disabling row level security, adding a policy with true or moving a secret key into the browser. Each prompt rules out the shortcuts that would open your data.

Can I paste several prompts at once?

Better not. Paste one, read the change it proposes, apply it and run the check on its page. Several fixes in one go are hard to review, and a mistake in one hides behind the others.

Are the prompts in German too?

The prompts stay in English on purpose: builders follow precise English instructions most reliably, and the names in them (tables, policies, Supabase settings) are English anyway. Every page around them is available in German.

Sources

  1. 1.Row Level Security — Supabase Docs
  2. 2.OWASP Top 10 for Large Language Model Applications — OWASP
  3. 3.Understanding API keys — Supabase Docs

Updated