Multi-Tenant SaaS Penetration Testing Checklist: Isolation & RBAC
How to penetration test multi-tenant B2B SaaS platforms: tenant isolation, RBAC privilege escalation, SSO scoping, background exports, and billing logic.
Web & App Security · By Thimmagurudu Bathini, CTO · Published · 6 min read
Where Multi-Tenant Isolation Fails in Practice
Multi-tenant SaaS applications share databases, queues, and object storage across competing customer organizations. Automated scanners cannot understand tenant boundaries, making manual cross-tenant testing the single most important check before enterprise customer onboarding.
# Tenant A initiates export; Tenant B polls the job ID
GET /api/v2/exports/job_98421/download HTTP/1.1
Host: app.saas.example
Authorization: Bearer <tenant_B_member_jwt>
# Must return 403/404; never a pre-signed S3 URL for Tenant AFour SaaS Surfaces That Leak Tenant Data
| SaaS Component | Cross-Tenant Risk | Manual Test Case |
|---|---|---|
| REST / GraphQL APIs | Tenant A reads or mutates Tenant B IDs (BOLA) | Swap org_id/workspace_id headers and resource UUIDs across accounts |
| Async Export & Webhooks | Background CSV/PDF jobs mix tenant data or leak signed URLs | Trigger exports simultaneously across two tenants and inspect S3 keys |
| RBAC & Invites | Member role invites Admin or reuses expired org invite token | Replay admin-only endpoints with low-privilege member cookies |
| SSO & Custom Domains | IdP domain takeover or cross-tenant SAML assertion reuse | Test SAML/OIDC login linking between two separate customer workspaces |
Setting Up Two-Tenant Role Matrices
- Provision at least two completely separate test tenants (Org A and Org B) with Admin and Standard Member roles in each.
- Test every file upload, report export, webhook callback, and search filter for missing tenant_id scoping.
- Check feature-flag, seat-limit, and billing endpoints for client-side tampering or race conditions.
- Verify that deleted or suspended users immediately lose API and refresh-token access.
Enforcing Isolation at the Query Layer
Enforce tenant isolation at the ORM/query-middleware or database Row-Level Security (RLS) layer rather than relying on individual controller checks.
From the Field: Cross-Tenant IDOR in Async Export Queues
In multi-tenant B2B SaaS assessments, standard GET endpoints are often locked down while background CSV and PDF export queues leak data across organizations. Swapping a tenant or job UUID in the polling endpoint frequently returns a pre-signed object-storage URL belonging to another customer.
Request a two-tenant B2B SaaS penetration test starting from ₹36,000 + 18% GST. Request a scoped proposal →
Multi-Tenant SaaS Pentest Questions
How many test accounts do we need for a SaaS pentest?
At least four accounts: Admin and Standard User in Tenant A, plus Admin and Standard User in Tenant B.
What does a SaaS pentest cost?
Single-application SaaS VAPT starts at ₹36,000 + 18% GST (₹42,480 total), with combined Web + API scopes quoted transparently.