You built it in Lovable.Now make sure it holds.
We attack your Lovable app as real users.Every fix comes as a Lovable prompt.
Why Lovable apps
Built in an afternoon.Exposed in a minute.
Lovable apps usually run on Supabase, and the browser talks to the database directly with a public key. That is safe only when every table has the right row level security policies.
When a policy is missing or too broad, anyone with the public key can read or change the data. This has already exposed real users of real Lovable apps.
Lovable's own security check catches configuration problems. Hetz goes further: it signs in as two users and proves whether one can reach the other's data.
Lovable risks
Where Lovable apps leak.
The same gaps show up again and again.
- 01
Missing or loose RLS
Tables readable by anyone with the public key.
- 02
Login, not ownership
Policies that let any signed-in user read every row.
- 03
Secrets in the bundle
Service role or AI provider keys in frontend code.
- 04
Admin in the UI only
Admin actions any user can call directly.
- 05
Client-side pricing
Plans and credits the browser can rewrite.
- 06
Public storage
Uploaded files anyone can download.
In every Lovable test
What Hetz tests.
- 01Every Supabase table the app touches, as two users
- 02Select, insert, update and delete across accounts
- 03Ownership and role columns users should not change
- 04Edge functions called with another user's ids
- 05Storage buckets and file links
- 06Keys and secrets in the deployed JavaScript
- 07Auth: sign up, reset and rate limits
- 08Every fix written as a prompt for Lovable
How it works
Your domain in.Insights and fixes out.
This is the real run, step by step.Scroll and watch it.
Point it at your domain
Put in your domain and confirm it's yours. Hetz tests only what you own, and only what you approved.
Full fixes
Don't just find it.Fix it.
Every vulnerability ships with a complete fix.The patch, the test that proves it, and a prompt for your coding agent.Paste, merge, retest.Done.
- Written for your stack: Next.js, Supabase, Firebase, Laravel, Django and more
- Starts with a failing test, so the fix is proven, not hoped for
- Built with Lovable, Bolt or Base44? The prompt works there too
Any signed-in user can read any invoice
GET /api/invoices/{id}
Evidence
GET /api/invoices/8812 (as user 4471)
→ 200 OK {"customer":"user 1203", "total": …}You are fixing a verified security finding in a Next.js app with Supabase.
Finding: Broken object level authorization (CWE-639, OWASP API1:2023).
Endpoint: GET /api/invoices/{id}
Proof: a request as user 4471 for invoice 8812 (owned by user 1203) returned 200 with the invoice body.
Task:
1. Write a failing test that reproduces the request above.
2. Enforce ownership: only return the invoice when invoice.customer_id matches the signed-in user (or their organization). Add a Supabase RLS policy on the invoices table so the database enforces it too.
3. Return 404, not 403, for invoices the user does not own.
4. Make the test pass and list every other route that reads invoices by id.Go deeper
Read before you ship.
Lovable Security: How to Test a Lovable App Before Launch
Built with Lovable? How its apps usually store data, the gaps that expose Supabase data most often, and how to test and fix them before your users arrive.
Supabase Security: Row Level Security Mistakes and How to Test Them
How to secure a Supabase app: row level security done right, the policy mistakes that leak data, service keys, storage and functions, and how to test it as an attacker.
Lovable, Bolt and Base44 Security: How to Test an AI-Built App
Built your app with Lovable, Bolt, Base44, Replit or v0? The security gaps these platforms leave most often, how to check for them and how to fix them before launch.
Secrets in Frontend Code: How to Find and Fix Exposed API Keys
Why API keys and tokens end up in browser code, how to find them in a built app, which keys are safe to expose and how to move secrets to the server.
FAQ
