Authorized · Object-level authorization

IDOR testing for multi-tenant SaaS

Insecure Direct Object Reference (IDOR), also described as broken object-level authorization (BOLA), occurs when an API or application uses a user-supplied identifier to access an object without checking that the caller is allowed to access it. In a multi-tenant SaaS product, that often means one organization can read, change, or delete another organization’s records by substituting an ID.

Unguessable identifiers do not solve this. A UUID can make enumeration harder; it does not enforce authorization. BreachSweep performs authorized IDOR testing for SaaS APIs — including batch endpoints — as part of a Deep Logic Sprint. Findings come with reproducible PoCs and drop-in fixes. Reports are delivered in 24 hours.

Choose a plan

Two-account method

The reliable way to test IDOR is with two authorized identities you control.

  1. Create or select a resource that belongs to account B (tenant B), and record a marker you will recognize.
  2. Using account A’s session or token, request that resource: read, update, delete, or attach, depending on the route.
  3. Confirm the result by the response body, a follow-up read, or the persisted state — for example, whether A received B’s marker, or whether B’s object changed.
  4. Repeat for other methods on the same object type. A GET may be protected while a PATCH or DELETE is not.

Controls belong in the same protocol: a request with no authentication, a request for a nonexistent ID, and a request for A’s own object (to confirm the route works). Only systems you own or have written authorization to test should be exercised this way.

This method is also the foundation of tenant isolation testing. IDOR is often how isolation fails on a single object; isolation testing then extends the same idea to lists, search, exports, and jobs.

IDs in paths, bodies, headers, and batch arrays

Identifiers are not only in /items/{id}. In authorized tests we look for IDs in:

  • Path segments and query parameters
  • JSON or form bodies, including nested objects
  • Headers or metadata fields that select a tenant, organization, or workspace
  • Filenames, export job IDs, and signed-URL tokens that map back to an object
  • Arrays on bulk endpoints: ids, itemIds, GraphQL mutation lists

Batch routes need special care. A handler may authorize the first element and then operate on the rest, or it may authorize “does this user have access to the batch feature?” without checking each target. Mixing A’s own IDs with B’s IDs in one request is a standard test case. We describe the failure mode and a SQL/ORM fix pattern in Batch API IDOR.

We also test whether changing only the ID is enough, or whether the application trusts an additional client-supplied tenant field that can be swapped independently.

Why UUIDs are not authorization

Teams sometimes assume that UUIDv4 primary keys eliminate IDOR because they cannot be guessed. Entropy is not an access-control check.

UUIDs leak through ordinary product use: browser history, Referer headers, logs, analytics, support tickets, and webhook payloads. Once an ID is known, a missing ownership check is enough. Default ORM lookups that load by primary key alone, without a tenant or owner predicate, make that failure easy to ship.

Authorization must be explicit: the query or policy that loads or mutates the object should include the caller’s tenant or owner, derived from a verified session. For a longer treatment, see The UUID Fallacy.

Fixes at query and policy layer

Durable fixes live where the object is loaded or changed, not only in the UI.

  • Scope every read and write with a predicate such as org_id = :orgId (or the equivalent), in addition to the object ID.
  • Derive orgId from the verified session, not from a client-supplied field.
  • Apply the same predicate in batch operations, including WHERE id IN (...).
  • Prefer returning 404 for objects the caller must not see, rather than confirming existence with 403, when that matches your threat model.
  • If you use database policies (for example Row Level Security), confirm they run under the same role the application uses, and that exports and jobs do not bypass them with a privileged connection.

Drop-in guidance in a BreachSweep report is aimed at this layer, so the fix closes the route rather than hiding a button.

How we test

IDOR testing at BreachSweep is authorized and ownership-verified. It is included in the Deep Logic Sprint — $349, delivered in 24 hours — together with broader tenant scoping and checkout logic.

  • Testing uses tenants and accounts you control, with synthetic markers.
  • We do not prove a finding by pulling a real third-party customer’s data.
  • Every reported IDOR includes a reproducible request, typically cURL, and a suggested fix.
  • A reported finding that you fix can be retested at no extra charge within 30 days.

Recon Sweep — $149, in 4 hours maps public routes and exposure; it is not a substitute for two-account authorization testing. Watchdog — $99/month re-scans the public surface weekly.

Choose a plan. See also SaaS penetration testing and a sample report (demo data). For a first look at public JavaScript and obvious Supabase exposure only, use the free SaaS security scan.

The work is directed by researchers with authorized red-team experience for large enterprises, including DAX companies and Fortune 500 platforms.

All research articles

FAQ

What is IDOR, and how does it relate to BOLA?+

IDOR (insecure direct object reference) is the older name for the same class of bug that the OWASP API work describes as broken object-level authorization (BOLA): accessing an object by an identifier without an ownership or tenant check.

Are UUIDs or other unguessable IDs enough to prevent IDOR?+

No. They may reduce casual enumeration. They do not authorize the request. Once an ID is known, the server must still enforce who may use it.

Why do you emphasize batch endpoints?+

Because a correct single-record check is often not reused when many IDs are processed at once. Bulk delete, bulk patch, and GraphQL list mutations are frequent places for that gap. We do not claim they are the only, or the single most common, failure.

How is IDOR testing different from tenant isolation testing?+

IDOR testing focuses on object-level access with substituted identifiers. Tenant isolation testing asks the broader question of whether any path — including search, exports, jobs, and webhooks — lets tenant A influence tenant B’s data. We recommend reading both pages; the Deep Logic Sprint covers them together.

How do you prove a finding without exposing real customers?+

We use tenants you own and synthetic markers. A proof is a request that returns or changes that marker under the wrong identity. If a response suggests a real, out-of-scope object, we stop.

Do you need source code, and can you retest a fix?+

Source code is optional. A reported finding that you fix can be retested at no extra charge within 30 days.