CONFIDENTIAL
Technical Due Diligence
REF: CR-2026-DEMO

SaaS Code & Security Inspection Report

Initial GradeCHaircut Risk
Diligence Verdict
Escrow Holdback

Holdback recommended until CR-SEC-01 is resolved.

Inspection Depth
25-Point Spec

Full RLS, Secret, Handover, and Webhook verification.

Post-Fix Target
Grade A (Ready)

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

CR-SEC-01DEAL KILLERVector: Supabase / PostgreSQL
CVSS:9.1

Unprotected Row Level Security on User Documents

Plain-English Business Impact

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.

CR-SEC-02DEAL KILLERVector: Next.js Client Bundle
CVSS:9.8

Service Role Key Leaked in Client Bundle

Plain-English Business Impact

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.

CR-BIL-01VALUATION HAIRCUTVector: Stripe / API
CVSS:8.4

Unverified Stripe Webhook Handler

Plain-English Business Impact

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.

CR-PERF-01MEDIUM RISKVector: DB Performance
CVSS:5.2

Missing Index on Foreign Key

Plain-English Business Impact

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 ✓
✓CR-SEC-03Stripe Live Secret Key Hygiene
Secrets & Credentials
✓CR-SEC-04AWS IAM Access Key ID Hygiene
Secrets & Credentials
✓CR-SEC-05RSA / PEM Private Key Hygiene
Secrets & Credentials
✓CR-SEC-06Client Bundle Secret Prefix Isolation (NEXT_PUBLIC_ / VITE_)
Secrets & Credentials
✓CR-SEC-07Browser-Exposed AI SDK Guard (dangerouslyAllowBrowser)
Secrets & Credentials
✓CR-ARCH-01Mutation API Route Session & Header Authentication
Architecture & Auth
✓CR-ARCH-02Supabase PostgreSQL Row Level Security (RLS) Enabled
Architecture & Auth
✓CR-ARCH-03Supabase RLS Active Policy Coverage (CVE-2025-48757)
Architecture & Auth
✓CR-DB-01Parameterized SQL Queries (Zero Raw Injection Vectors)
Database & Performance
✓CR-BIL-02Lemon Squeezy Webhook HMAC-SHA256 Verification
Billing & Webhooks
✓CR-BIL-03Paddle Webhook Signature Unmarshaling Verification
Billing & Webhooks
✓CR-DEP-01Production Dependency CVE Scan (OSV.dev)
Dependencies & Supply Chain
✓CR-MAIN-01Active Non-Deprecated Package Manifest
Dependencies & Supply Chain
✓CR-MAIN-02Active Repository Commit Velocity (<24 Months)
Dependencies & Supply Chain
✓CR-HAND-01Environment Variable Handover Template (.env.example)
Handover & Buildability
✓CR-HAND-02Reproducible Production Build Script (package.json)
Handover & Buildability
✓CR-HAND-03Automated Regression Test Suite Presence
Handover & Buildability
✓CR-FRAG-01Strict TypeScript Type Safety (Minimal :any Escapes)
Maintainability & Types
✓CR-FRAG-02Structured Exception Handling (Zero Silent Catch Blocks)
Maintainability & Types
✓CR-STRUC-01Consistent Async/Await Control Flow
Maintainability & Types
✓CR-STRUC-02Modular Function Responsibilities & Line Span
Maintainability & Types

The Certified Health Certificate

CR
Conditional Pass Specimen (Grade C)
Issued by Clear Record Ops · Sample Remediation Required
Certificate ID
CR-CERT-2026-11-2026DM
Deal-Room PostureGRADE C · CONDITIONAL_PASS
Checks Verified21 / 25 Checks Passed
Active Specimen Findings4 Findings (Fix Before Close)
Supabase RLS Baseline100% SQL Audited
Deterministic specimen ID:job_cr_2026_demo
Date:2026-11-03

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.