Skip to content

Release: security fixes (RLS deny-all + cross-program IDOR)#183

Merged
sacha-l merged 2 commits into
mainfrom
develop
Jun 16, 2026
Merged

Release: security fixes (RLS deny-all + cross-program IDOR)#183
sacha-l merged 2 commits into
mainfrom
develop

Conversation

@sacha-l

@sacha-l sacha-l commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Promotes developmain (prod deploy). Carries only the security fixes merged since the last release (#181).

Included (#182)

  • RLS deny-all on all public tables — closes the anon-key read/write exposure. Already applied to the prod DB directly; this ships the migration file so repo + DB history match.
  • Cross-program IDOR fix in updateApplicationStatus — a program-A admin could mutate program-B applications; now scoped + tested.

Verification

429 server tests pass; client build + lint clean. RLS already verified closed on prod (anon → []).

Not in this deploy (runtime, separate)

  • The Bitrefill Luma event id still needs setting in the prod admin for the gate to activate — that's DB config, not code.
  • Rotate the leaked Mongo Atlas credential from git history (out-of-band).

sacha-l added 2 commits June 17, 2026 00:02
… status update

1) RLS: the Supabase Data API exposed every public table to the anon key
   (shipped in the client bundle) for read AND write — verified anon could
   SELECT/DELETE/UPDATE projects, program_admins, multisig_*. Enable RLS
   (deny-all) on all public tables; server uses service_role (BYPASSRLS) and
   the client only uses Supabase auth, so zero functional impact. Already
   applied to prod; committing so repo history matches.

2) IDOR: updateApplicationStatus updated by applicationId without verifying it
   belongs to the program in the slug, letting a program-A admin mutate
   program-B applications. Now fetch + assert programId match before any write.

429 server tests pass.
security: enable RLS on public tables + fix cross-program IDOR
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stadium Ready Ready Preview, Comment Jun 16, 2026 11:03pm

@sacha-l sacha-l marked this pull request as ready for review June 16, 2026 23:03
@sacha-l sacha-l merged commit 30619a0 into main Jun 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant