Can users get my AI-built app's paid features for free? Checking Stripe payments
Three ways payment gets bypassed
This is not hypothetical. The CVE-2025-48757 write-up showed how weak database rules let a signed-out visitor insert a record already marked as paid, bypassing Stripe. And in one industry test of 15 AI-built apps, 4 of 5 agents let customers place orders with negative quantities.
- The success page writes paid = true. Anyone can open the success page or send that update directly.
- The browser sends the amount. A user can change it to 1 cent, or to a negative number.
- The database lets users update their own plan, status or credits columns.
The safe pattern
- The browser asks your server to start checkout, sending only a product or plan id.
- Your server looks up the price itself and creates the Stripe Checkout session.
- Stripe sends a webhook to your server when payment succeeds.
- Your server verifies the webhook signature with your webhook signing secret, then marks the order paid.
- Your database rules stop users from changing paid, plan, role or credit fields themselves.
How do you check your own app?
- Search your code for the place an order or subscription becomes paid or active. It should be in a webhook handler on the server.
- In that handler, look for signature verification (
constructEventor the equivalent). No verification means anyone can call it. - Check that the amount charged is not taken from the request body.
- Check your database rules on orders, profiles and subscriptions tables for user-editable status columns.
1. Run the free local check
npx caelo .
Caelo is a free, open source (MIT) command line tool and MCP server from Irth Labs that checks the files of an AI-built app for exposed API keys, Supabase and Firebase misconfigurations and .env files with real values. It runs on your machine, uploads nothing and uses no AI model. Each finding comes with a plain-English fix.
2. Act on a finding
Follow the fix in your report and run Caelo again. If Git could commit an untracked file containing secrets, preview a US$19 quick fix for that file.
For findings that need an engineer, Irth Labs offers a US$490 App Health Check. You receive a written report within 48 hours and a fixed repair quote. The fee counts toward the repair if you proceed.
Questions
Is the Stripe publishable key safe in my frontend?
Yes, pk_ keys are public by design. sk_ (secret) and rk_ (restricted) keys and the webhook signing secret must stay on the server.
Do I need webhooks if I use Stripe Checkout?
Yes, to know reliably that payment succeeded. The redirect to your success page is not proof of payment.
Could people have already used this?
Compare paid orders against Stripe's payment records. Orders marked paid with no matching Stripe payment are the sign.