medium · M3 · MASVS-AUTH-1 · PTKD-LIVE-SUPABASE-OPEN-SIGNUP
Anyone can sign up without confirming an email
The project accepts new sign-ups and confirms their email automatically. A script can create unlimited confirmed accounts, and each one passes every policy written for the authenticated role.
How it is exploited
An attacker calls POST /auth/v1/signup with a throwaway address, gets a session at once, and reads every table whose policy is `to authenticated using (true)`.
Why it matters
Any rule that only checks "signed in" is open to the whole internet, and fake accounts flood the user table.
How to fix it
- Enable Confirm email in the Supabase dashboard.
- Review policies that use `to authenticated` without an ownership check.
- Add CAPTCHA protection to sign-up (Authentication, Attack Protection).
Does your app have this?
PTKD checks your build or your source project for PTKD-LIVE-SUPABASE-OPEN-SIGNUP and every other check in this knowledge base.
Scan your appReferences
Related checks (M3)
- Permissive CORS with credentials
- State-changing request succeeded without authentication
- Weak JWT observed on the wire
- Biometric authentication not bound to a cryptographic key
- Premium access is stored on the phone and trusted (heuristic)
- Firebase rules trust an email address nobody verified
- Firebase security rules open to everyone
- Users can make themselves admin or premium in Firestore