low · M8 · MASVS-AUTH-2 · PTKD-LIVE-SUPABASE-GRAPHQL-INTROSPECTION

    Supabase GraphQL schema readable with the public key

    pg_graphql answers introspection for the anon key, which maps every table and relation exposed through the API.

    How it is exploited

    A single introspection query lists every exposed table and column, which tells the attacker exactly where RLS gaps are worth testing.

    Why it matters

    Reconnaissance: a full map of the data model.

    How to fix it

    1. If GraphQL is unused: `drop extension if exists pg_graphql;`.
    2. Otherwise revoke usage on schema graphql_public from anon and keep RLS on every table.

    Does your app have this?

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

    Scan your app

    References

    Related checks (M8)