返回资讯中心
外部精选
软件工程
#开发者实时流

BreachSweep 推出只读扫描器,检查 Supabase RLS 表与前端密钥暴露

来源标题:Show HN: Read-only scanner for exposed Supabase RLS tables and bundle keys

BreachSweep 推出免费的只读 Supabase RLS 扫描器,用于检查已部署前端暴露的表和密钥。用户粘贴自有或获授权的 URL 后,工具会识别 Supabase 项目和 keys,并检测公共 PostgREST 端点是否在未认证下泄露表结构或数据。扫描无需注册,并返回可复制的 SQL RLS 迁移和 AI 修复提示。

Hacker News 最新breachsweep2026/11/24 · 今天11 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Free · Read-only · PostgREST & JS Bundle Check

Supabase ships a public anon JWT to the browser by design. That architecture is only safe when PostgreSQL Row Level Security (RLS) is enabled and strictly scoped on every exposed table. BreachSweep’s free Supabase RLS scanner inspects your deployed frontend bundle, identifies your Supabase project and keys, and checks whether public PostgREST endpoints leak table schemas or rows without authentication.

Paste any URL you own or are authorized to test. The check is strictly read-only, requires no sign-up, and returns copyable SQL RLS migrations and AI fix prompts.

Paste a URL you own or are authorized to test. Placeholder examples: target-app.com, my-app.lovable.app, or app.vercel.app.

Show vulnerable app example

Built with:CursorLovableBolt.newRork / Expov0.devWindsurfReplitClaude Code

Scan Supabase RLSSupabase /rest/v1/ RLS checkNext.js & Vite JS chunk secret detectorFix prompts for Cursor

Read-only · Non-destructive

What this Supabase RLS scanner checks

When you submit a deployed URL, the engine inspects the exact public surface an unauthenticated attacker sees in a browser:

If a table in the public schema returns rows to the anon role, enable RLS immediately and lock every verb (SELECT, INSERT, UPDATE, DELETE) to an explicit ownership or tenant predicate:

ALTER TABLE public.workspace_records ENABLE ROW LEVEL SECURITY;

CREATE POLICY "tenant_members_read_own_records" ON public.workspace_records FOR SELECT TO authenticated USING ( workspace_id IN ( SELECT workspace_id FROM public.workspace_members WHERE user_id = auth.uid() ) );

Where public RLS checks stop — and real breaches still happen

Passing an unauthenticated RLS check does not guarantee multi-tenant safety. In real SaaS audits, we regularly find Supabase breaches behind login where the anon role is completely locked down:

To verify authenticated tenant boundaries across two real test accounts, book a tenant isolation test or a Deep Logic Sprint ($349) — delivered with reproducible cURL PoCs, drop-in SQL/TypeScript fixes, and a free 30-day retest.

Using Supabase or PostgreSQL Row-Level Security? In Next.js Server Components, one misplaced service_role key turns your multi-tenant database into an open leak. Here is how it happens and the zero-trust fix.

Single-record endpoints often pass authorization checks, but bulk endpoints (/api/items/batch-delete, GraphQL bulk mutations) frequently loop over unscoped arrays. Here is how attackers exploit batch routes to drain competitor data—and the SQL/Prisma fix.

Many SaaS teams assume UUIDv4 primary keys eliminate Insecure Direct Object References. Here is how UUIDs leak, why ORMs make cross-tenant data leaks effortless, and how to fix it in Prisma and PostgreSQL.

Not by itself. The Supabase anon key is designed to ship to browsers when Row Level Security (RLS) is enabled and correctly scoped on every table. Exposure becomes critical when RLS is disabled, policies are overly broad, or a service_role key ships to the client bundle.

It fetches publicly reachable pages and compiled JavaScript bundles from a URL you authorize, extracts Supabase project URLs and client keys, checks for leaked service_role credentials, and runs non-destructive read-only PostgREST checks for publicly readable tables and schema metadata.

No. The public scanner performs read-only HTTP checks only. It does not insert, update, delete, or run destructive load tests against your project.

No. An unauthenticated scan only sees what is reachable with the public anon role. Authenticated cross-tenant RLS bugs — such as USING (true) for logged-in users, SECURITY DEFINER RPC leaks, or backend service_role bypasses — require an authorized two-tenant test.

Enable RLS with ALTER TABLE public.<table_name> ENABLE ROW LEVEL SECURITY, create explicit SELECT/INSERT/UPDATE/DELETE policies tied to auth.uid() or a verified tenant claim, and rotate any service_role key that ever appeared in a client JS chunk.

Upgrade when you have paying multi-tenant customers, custom Edge Functions, Next.js Server Actions using the service_role client, or Stripe billing workflows. The Deep Logic Sprint tests authenticated tenant boundaries and delivers reproducible cURL PoCs and drop-in fixes.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →