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

    1. Enable Confirm email in the Supabase dashboard.
    2. Review policies that use `to authenticated` without an ownership check.
    3. 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 app

    References

    Related checks (M3)