SaaS Code & Security
Inspection Report
Holdback recommended until CR-SEC-01 is resolved.
Full RLS, Secret, Handover, and Webhook verification.
Confirmed via provided fix PRs.
This report is a Sanitized Sample. A full client report includes itemized risk scoring for every pillar and a cryptographic seal for use in Acquire.com data rooms.
Critical Findings & Deal Killers
Priority: High Risk / Valuation Impact
Unprotected Row Level Security on User Documents
Anyone visiting your website can open their browser console and download every customer document in your database using your public Supabase key. This is an automatic deal-killer in Acquire.com due diligence.
Table public.user_documents has RLS disabled. Anyone with the public anonymous key can dump all customer files.
Service Role Key Leaked in Client Bundle
Your master database admin key is being sent to every visitor's web browser. A bad actor can extract it in 30 seconds to delete your entire database or impersonate any user.
SUPABASE_SERVICE_ROLE_KEY is exposed in production client bundle via unintended import. Grants administrative bypass to the entire DB.
Unverified Stripe Webhook Handler
Your app activates paid subscriptions without checking if the payment notification genuinely came from Stripe. Anyone can send a fake request to unlock your Pro plan for free.
The endpoint /api/webhooks/stripe parses POST data without validating the stripe-signature header. Vulnerable to billing forgery.
Missing Index on Foreign Key
Every time a user opens or deletes a document, your database scans the entire table row-by-row instead of using an index. As your customer base grows, this causes slow page loads and spikes your database bill.
Column document_chunks.document_id is missing a B-Tree index. Foreign key cascades perform full sequential scans.
Passed Checks · 25-Point Verification Matrix
21 / 25 Checks Verified ✓The Certified Health Certificate
Honest Scope & Limitations Disclosure (What We Checked vs. What We Didn't)
This is a deterministic static AST, SQL schema, and OSV dependency audit. We did not execute your application at runtime, perform live DAST penetration testing, or audit financial P&L statements.
Get this level of clarity on your assets in 60 seconds.
Run a free instant 25-Point Pre-Scan on your GitHub repository, or unlock the full Deal-Room Report with AI Agent Fix Prompts and SQL Patches for $49.