← Blog · 27 October 2026
Can someone unlock your paid plan for free? Check your Stripe success page
Start with the outside check: paste your address into the free Vibe-App Watchdog scan. It looks for things any visitor can see, like a secret Stripe key (sk_live_...) in your public JavaScript or an open /.env file. The payment-flow tests below are ones you do by hand, because a passive scan cannot see your server code or database rules.
When you ask an AI builder to "add Stripe payments", one simple first version can work like this: the user pays on Stripe's checkout page, Stripe sends them back to /success, and the app sees that page load and marks the account as paid.
That feels fine in testing. The problem is that /success is just an address. Anyone can type it.
Why the success page should not unlock anything
Stripe's own guide to fulfilling orders tells you to use webhooks to give customers what they paid for. It also warns that a customer might never reach your success page, so that page is not a safe signal that they paid (Stripe: fulfill orders).
A webhook is a message Stripe sends from its servers to yours when something happens, like a completed checkout. Your server checks the Stripe-Signature header with a signing secret, so it knows the message really came from Stripe (Stripe: webhooks).
Three tests you can do yourself
Only run these tests on your own app.
- The typed-address test. Make a new free account. Without paying, type your success address (for example
https://your-app.example/successor/payment-success?session_id=test) into the browser. Then reload and look. If you now have paid features, anyone can do the same. - The "is_pro" test. If your app stores the plan in a database column like
is_pro,planorcredits, check who is allowed to change it. In Supabase, open the table's Row Level Security policies. If users may update their own row with no limit on columns, a logged-in user can setis_pro = truefrom the browser console. - The key test. Open your live site, then DevTools > Sources, and search for
sk_liveandsk_test. Secret Stripe keys belong only on the server. If one is there, roll (replace) it in the Stripe dashboard right away.
How to fix it
- Only change a user's plan inside a webhook handler on the server (for example a Supabase Edge Function or a Vercel function), after a
checkout.session.completedevent. - Verify the signature on every webhook with your
whsec_...signing secret. Without it, anyone could send your endpoint a fake "payment done" message. - Make the success page read-only: it can show "Thanks, we're confirming your payment", but it should not write anything.
- Lock the plan columns so users cannot update them. Only the server, using a key that never reaches the browser, should write them.
A prompt you can give your AI builder:
Change my Stripe flow so the success page never unlocks features. Add a server-side webhook handler for checkout.session.completed that verifies the Stripe-Signature header with my webhook signing secret, and only that handler may set the user's plan. Make sure users cannot update plan, is_pro or credits columns themselves, and that no secret Stripe key is in frontend code.
What the free scan does and does not check
The scan is passive. It looks at security headers, common files that should not be public (like .env, .git and .DS_Store), patterns that look like secret keys in your public JavaScript, and public source map files. It cannot test your payment flow, your database rules (like Supabase Row Level Security) or your server code, so do the three tests above yourself. A good result means we did not find the common problems we check for. It does not mean your app is fully safe.
The first scan is free. If you want the full report with a fix prompt for each finding, it is a one-time payment of $19, with no subscription.
Related: Is a secret API key hiding in your app's frontend? and Hiding the admin button is not the same as locking the door.
Sources
- Stripe – Fulfill orders (Checkout): https://docs.stripe.com/checkout/fulfillment
- Stripe – Receive Stripe events in your webhook endpoint (signature verification): https://docs.stripe.com/webhooks
- Supabase – Row Level Security: https://supabase.com/docs/guides/database/postgres/row-level-security