Anyone signed in could read other customers' orders
- Why it matters
- Your shop keeps names, addresses and order totals for 1,240 customers. One wrong link would show them to the wrong person.
- How Shoal checked
- Shoal signed in as a test customer and asked for another test customer's order. It got it, in full.
- What changes
- Each order is now served only to the customer it belongs to. Nothing else about the page changes.src/app/api/orders/[id]/route.ts:41
Your users table was readable by anyone on the internet
- Why it matters
- It holds every customer's email and phone number. The public key in your pages is fine, that's how Supabase works, but then the table needs its own lock.
- How Shoal checked
- Shoal asked for the table with only the public key and no login. It got 2,140 rows.
- What changes
- The table now lets each user read only their own row. Sign-in, checkout and your dashboard work exactly as before.supabase/migrations/20261024_profiles_rls.sql
A fake Stripe event could mark any order as paid
- Why it matters
- Your shop ships when an order is paid. A forged event would mean free orders and a sales list you can't trust.
- How Shoal checked
- Shoal sent a made-up payment event for a test order, with no Stripe signature. The order went to paid.
- What changes
- The webhook now checks that each event really comes from Stripe before trusting it. Real payments flow exactly as before.src/app/api/stripe/webhook/route.ts:12


