1. Multi-Tenant IDOR & RLS Isolation
Cross-tenant reads/writes via unscoped IDs, missing Supabase Row-Level Security policies, server-action privilege drift, and GraphQL/JSON soft-200 partial object leaks.
Cross-tenant reads/writes via unscoped IDs, missing Supabase Row-Level Security policies, server-action privilege drift, and GraphQL/JSON soft-200 partial object leaks.
Service-role keys or admin tokens leaking into NEXT_PUBLIC_* bundles, public source maps, misconfigured CORS/CSRF, and unauthenticated admin or debug routes.
Missing Stripe/Creem HMAC signature checks, replayable checkout callbacks, client-trusted pricing or quota parameters, and race conditions on credit grants.
Indirect prompt injection reaching mutating tools, symlink/path traversal in upload or sandbox paths, SSRF into metadata endpoints, and token/cookie echo into LLM context.
Auth middleware bypassed on new endpoints, weakened error handling, disabled security checks, or deleted test assertions introduced during rapid AI-assisted coding sprints.
For solo SaaS founders before public launch or paid onboarding
<REDACTED>) & remediation snippetsRecommended for AI Agents, MCP backends & B2B multi-tenant SaaS
<REDACTED> in reports## [HIGH] Cross-Tenant Invoice Export via Unscoped Org ID
- Scope: Tenant Isolation / Authorization | Confidence: Verified (Staging Repro)
- Location: src/app/api/invoices/[id]/export/route.ts:42-61
### Why It Matters
Authenticated users in Tenant B can export Tenant A PDF invoices by supplying a valid invoice UUID.
No membership check is performed against `session.orgId` before fetching the signed storage object.
### Minimal Reproduction (Redacted)
curl -sS -H "Cookie: session=<TENANT_B_SESSION_REDACTED>" \
"https://staging.example.test/api/invoices/inv_9f2a.../export" -o /dev/null -w "%{http_code}\n"
# Observed: 200 (Expected: 403 / 404)
### Minimal Fix Patch
- const invoice = await db.invoices.findUnique({ where: { id } });
+ const invoice = await db.invoices.findFirst({
+ where: { id, orgId: session.orgId },
+ });
### Coverage Matrix (Excerpt)
| Surface | Status | Notes |
|---------------------------------|------------|--------------------------------------------|
| Auth & Multi-Tenant API Routes | Tested | 18 endpoints verified across 2 test tenants |
| Stripe Webhook HMAC & Replay | Tested | Verified invalid signature & duplicate ID |
| Production Infrastructure / IAM | Not tested | Out of scope (client staging + repo only) |
Judge the engineering discipline from public code and reproducible adversarial tests — not marketing claims:
sessfork 20/20 live adversarial checks (75+ vectors) ↗ ·
kbwall (forbid(unsafe_code)) ↗ ·
claimcite deterministic verifier ↗ ·
ZeroInk zero-upload redactor ↗ ·
Full commercial hub
Calls across time zones burn hours that are better spent reading authorization paths and testing edge cases. Written scopes prevent ambiguity, create an exact paper trail, and deliver fixed pricing below traditional agencies.
You still receive the complete security check report documenting every surface verified, any Medium/Low hardening notes, and the explicit Tested vs. Not Tested matrix — giving you concrete proof before launch.
Code is inspected strictly in an isolated local workspace. Your repository is never uploaded to public cloud scanners or model training pipelines, and all local clones/artifacts are purged within 14 days of final delivery.
The clock starts as soon as prepayment clears and I confirm working read-only repository access plus staging test accounts. If I miss the agreed window, you get a pro-rated refund or full cancellation option.
Yes. Every booking starts with a crisp 1-page Fixed-Scope & Mutual Confidentiality Agreement (accepted in writing by email reply) before you grant any repository or staging access.