The bugs AI-built apps ship with, and the fix for each one.
Plain-English guides to what goes wrong in apps built with Cursor, Lovable and Bolt: why it matters, how to check your own app, and the exact code to paste. Every guide maps to a check Scanwright runs.
- 9guides
- 3critical
- 9stacks covered
New guides land with each release. Not sure where to start? Run a free scan and the report links straight to the guide for every finding.
Supabase Row Level Security is off, and it is leaking your data
If Row Level Security is disabled on a Supabase table, anyone with your public anon key can read or edit every row. Here is how to check and fix it.
Read the guideYour Stripe webhook is unverified, and someone can unlock your product for free
If your Stripe webhook does not verify the signature, an attacker can POST a fake "payment succeeded" event and get your product for nothing. How to verify it.
An exposed .env file is handing out your keys
A committed or served .env file leaks your Supabase service key, Stripe secret and more, giving an attacker full access. How to find and stop the leak.
SQL injection in a Next.js API route
Building a query by pasting user input into a string lets an attacker bypass login or dump your database. How SQL injection happens and how to stop it.
IDOR: when changing a number in the URL leaks other people’s data
Insecure Direct Object Reference (IDOR) lets a user read or edit another user’s records just by changing an ID. Why it happens and how to fix it.
Put a limit on the endpoints that cost you money or let someone guess
Password reset, sign-up, search, and anything that calls an AI model or sends email needs a limit per user and per address. How to add one in Next.js, Express and Supabase edge functions.
Three flags that decide whether a session can be stolen
What the Secure, HttpOnly and SameSite cookie attributes do, why AI-built apps often miss them, and how to set them in Next.js, Express and Supabase.
Turn on backups, then restore one on purpose
How to enable daily backups and point-in-time recovery on Supabase and other managed databases, and why a restore you have never tried does not count.
Your app is missing its security headers
Without headers like Content-Security-Policy and HSTS, your app is easier to attack with injected scripts or clickjacking. How to add them in Next.js.
No guides in this topic yet.