Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

SaaS customer isolation: direct-object request test cases

Guidance for Technology, SaaS & Digital Businesses on saas customer isolation: direct-object request test cases: assess the real access path, supporting evidence and safe control tests.

The identifier is not an entitlement

A multi-tenant SaaS service may expose project files, support cases or invoices through predictable or opaque object identifiers. A tenant should be able to retrieve its own objects while the same identifier syntax must not permit access to another organisation’s records. This workbook demonstrates how to test that boundary without placing live customer data at risk. Use two fully synthetic organisations, Ember and Vale, with deliberately distinguishable projects and documents. The test reviewer needs approved staging access, the application owner’s permission, and a clear matrix of expected authorisation. The relevant weakness is commonly an insecure direct object reference, but its consequences depend on which receiving operation fails and what data or change actually occurs.

Prepare four identities: an ordinary Ember user, an Ember administrator limited to its own account, an ordinary Vale user and a narrowly scoped platform support operator. Create four types of resources for each tenant: a document, a support ticket, a billing statement and a project configuration. Each resource should have owner, creation time, classification, allowed operations and a known content marker. Use fabricated addresses and amounts. For each request, capture the identity claims, target object identifier, chosen operation, server decision and record returned. The test should not rely on client-side buttons because they are not a security boundary.

Test an authorised read before testing a forbidden one

Begin with an Ember user opening an assigned Ember document through the documented application interface. Verify the document ID, current revision and returned fields in the network trace or safe test logs. Capture the relevant policy decision and application audit entry. Then issue an authorised direct request to the same object using the documented API or controlled test client. If the application rejects legitimate requests that bypass the UI for a documented route, the reviewer should clarify intended API use rather than call every denial a success. Establish expected behaviour with the product owner before concluding that a cross-tenant test failed or passed.

Next substitute a Vale document identifier while keeping the Ember identity and all other request conditions unchanged. The receiving service should refuse the read without returning sensitive metadata, previews or file contents. Observe whether the API authorisation layer checks tenant ownership after resolving the object and before serialising its response. Test both a known valid Vale ID and a nonexistent ID to determine whether the response leaks existence unnecessarily. Record the exact status and body category without retaining customer-like personal data in a general ticket. Do not send high-rate enumeration requests; a handful of authorised synthetic objects is enough to demonstrate the control.

Test write operations separately

A secure read path does not establish a secure edit or delete path. Use an Ember contributor account permitted to annotate an Ember project, then attempt to modify a Vale project configuration through a direct API call. The denied operation should leave the Vale record unchanged, including its modification timestamp and version. Verify the database state rather than trusting a failure response alone. Repeat with a destructive operation in a disposable staging dataset and confirm that the backend checks tenant, role and object state at the moment of execution. A permission cached from a previous request should not authorise a later write against another object.

A third case changes the parent object in a request. For example, an Ember user submits an authorised comment but supplies a Vale project ID as the destination while retaining an Ember comment ID. The application must validate ownership relationships, not only individual identifiers. The same issue can appear in file attachments, payment records and user assignment endpoints. Record whether the system rejects the inconsistent relationship and whether an audit event identifies the cross-tenant target. A valid authenticated session is not permission to attach an object to another tenant’s workflow. The expected result should include a positive control where an ordinary Ember-to-Ember association succeeds.

Check listing, search and export paths

Direct-object access is only one route to data. A list endpoint may accidentally return both tenants’ object IDs when a filter is missing; search suggestions may expose Vale’s project title even when download is blocked. Create synthetic documents with unique marker strings and test ordinary listing, search, preview and CSV export from the Ember account. Confirm that each path uses the same authoritative tenant boundary. If the application offers global search to a privileged support role, the business should define the approved reasons and audit requirements for that exceptional access. Do not claim an API is isolated while leaving a reporting endpoint untested.

Use a controlled pagination test: Ember lists its first page of support tickets, then follows an opaque cursor returned by the API. Verify that the cursor cannot be copied from a Vale session to retrieve Vale objects. A secure cursor may encode or reference tenant-specific state; the enforcement must still occur server-side. Observe row counts and aggregate totals because a count of another tenant’s open disputes can be commercially sensitive even if records are not returned. When an unexpected field appears, stop the specific test and preserve a minimal synthetic example. Expand review to other endpoints that share the same query builder or authorisation middleware.

Test invitations, roles and lifecycle changes

Create a synthetic external collaborator who is invited to one Ember project, not the whole tenant. The positive test confirms access to the assigned project and a denied read of another Ember project. This catches overbroad within-tenant grants that cross-matter tenant tests alone miss. End the invitation and repeat both access paths with a new session, checking cached tokens and signed file links. Record the intended time to revocation and the system’s observed behaviour. If a temporary signed URL remains valid after the collaborator is removed, the product must either enforce a suitably short expiry or adopt a revocable delivery design consistent with the business policy.

Now transfer a synthetic user from Ember to Vale under an authorised account migration scenario. The user should receive Vale access appropriate to the new role and should not retain stale Ember permissions through a shared email address, duplicated directory account or service-side cache. Test a background job created before the transfer to see whether it completes under old authority. The product owner must specify whether in-flight actions are cancelled, held or honoured, with a bounded rationale. The reviewer tests that policy rather than imposing a universal answer. Identity migration can reveal hidden coupling between account records and tenancy boundaries.

Inspect support impersonation and administrative bypasses

A platform support engineer may have a legitimate need to diagnose an issue for a particular customer. The support function should require a case reference, approved customer context and scoped access. Test a synthetic support grant for Ember that expires after the investigation. Then attempt to change the active tenant in a support API without a new approval. The service should deny out-of-scope access and record the attempt. A tool that simply hides unrestricted data behind an administrative screen is not a technical control. Separate reading job diagnostics from accessing customer content when practical, and avoid copying production records into unrestricted support logs.

Assess whether the same service account is used to run bulk exports, background synchronisation and support diagnostics. If one identity has global database privileges, application-level checks become especially important, and the account should not be directly exposed to untrusted API requests. Use code and configuration review together with black-box tests to establish where policy is enforced. A successful test on one HTTP endpoint does not prove that a scheduled worker uses the same policy. Note any platform-owned bypass that requires additional segregation or independent logging. Unjustified global privileges are remediation items even if the limited set of synthetic requests did not exploit them.

Evidence, stopping rules and remediation

The test register records case ID, requester, tenant, target object, operation, expected decision, observed response, resource state before and after, correlation ID and reviewer. Attach the minimal request and response fragments needed to reproduce a finding; do not attach live customer data or secrets. Mark each case pass, fail, not executed or insufficient evidence. A 500 error is not a proven authorisation denial, and a correct denial with missing logs should be reported as a separate observability gap. Pair every negative test with a valid path so the fix cannot pass by blocking all legitimate users.

Stop testing if a request reaches a live tenant, if data appears outside the synthetic boundary or if test traffic affects availability. Preserve the failed test case, isolate the staging route as appropriate and coordinate remediation with the product owner. Engineering should correct the policy at the actual receiving operation and add regression tests for related read, write, search and background paths. Re-run the failure after the fix, then exercise the original legitimate business flow. The acceptance statement must specify which object classes and operations were tested and which remain outside scope. Tenant isolation is a continuing product property demonstrated by evidence at each important boundary, not a certificate produced by one automated scanner.

Sources and further reading

Explore Next Defence expertise

Next Defence can help your team evaluate the permissions and operational risks in saas customer isolation: direct-object request test cases. Our specialists can review evidence such as Tenant claims, resource ownership, request logs, authorisation middleware and project state, assess whether the authorised work remains usable, and test controls against the unacceptable case where the same token modifies or exports tenant B records by replacing object IDs. We can agree proportionate remediation with saas api owner and application tester, backed by a repeatable acceptance test and clear incident responsibilities.

Explore Application Security & DevSecOps ↗

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].