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
- If GraphQL is unused: `drop extension if exists pg_graphql;`.
- 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 appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen