low · M3 · MASVS-AUTH-1 · PTKD-LIVE-SUPABASE-ANON-SIGNIN

    Supabase anonymous sign-ins are enabled

    Anonymous users get the authenticated role. Policies that only check the role let any anonymous visitor through.

    How it is exploited

    A script calls signInAnonymously(), receives a JWT with role authenticated, and reads tables meant for registered members.

    Why it matters

    Data meant for real accounts is readable by anyone who can open the app.

    How to fix it

    1. List policies that use the authenticated role.
    2. Add an is_anonymous check where only permanent users belong.
    3. Disable anonymous sign-ins if unused.

    Does your app have this?

    PTKD checks your build or your source project for PTKD-LIVE-SUPABASE-ANON-SIGNIN and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M3)