I Audited Two Ai Generated Apps On The Same Backend The Outcomes Werent Close
The Bolt.new event-manager scaffold had permissive UPDATE and DELETE row-level security policies without row-ownership checks, allowing an unauthenticated caller with the public anon key to modify or delete any row in the events table. The Lovable habit-tracker scaffold, by contrast, had correctly scoped policies and passed cross-tenant isolation tests.
Not yet a member? Read for FREE.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Bolt.new scaffold generated permissive UPDATE and DELETE policies without checking row ownership, while SELECT and INSERT were correctly scoped.
Impact
An unauthenticated attacker with the public anon key could update or delete any event row, compromising data integrity and availability for all users.
What the attacker needed
Public anon key; no authentication required
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Row-level security (RLS) is a database feature that restricts which rows each user can see or change. In the Bolt.new app, the rules for updating and deleting events were too loose, so anyone with the app's public key could change or remove other people's events. The Lovable app had proper rules, so users could only touch their own data.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.