Batch Request Object Isolation
Check that batched requests cannot mix identities, credentials or objects so one operation borrows another's context
Use when: the API accepts a batch array or HTTP/2 multiplexed requests that share processing context
Avoid when: each request is handled strictly independently with no shared context between them
Procedure
- Identify how batches are accepted and how context is established: one credential for the batch or one per item.
- Send a batch where items alternate between your two test accounts' object identifiers under a single credential.
- Send a batch carrying two different credentials, if supported, and check whether the first item's context leaks into later items.
- Observe error handling: does one failed item abort the batch, reveal others' results, or alter shared state?
- Check for ordering effects where an earlier item changes context that later items inherit.
- Record per-item outcomes so context bleed is attributable to a specific item position.
Signals
- Items later in the batch return data matching the context of an earlier item rather than their own.
- Per-item credentials are accepted and one item's role applies to subsequent items.
- An error in item one returns partial results from items that should have been refused.
- Batch responses include fields that belong to a different item's object.
Patterns
1. Mixed batch
items: [fetch(peer-id), fetch(my-id)] under my credential
expected: refuse + succeed observed: both succeed -> finding
2. Context test
item1 credential=A role=member, item2 credential=B role=admin
-> if item2 returns admin data, context bled from item1
3. Result row
batch_size=4 mixed=peer-items=2 leaked=0 outcome=refused-cleanly
Pitfalls
- Testing batches that contain only your own objects, which cannot expose context mixing.
- Ignoring partial-success semantics that silently return unauthorized results alongside errors.
- Forgetting write operations in the batch, where context bleed causes cross-account modification.
Done when
- Mixed-object and mixed-credential batches have been executed with per-item outcomes recorded.
- Context bleed is ruled in or out for read and write items, and ordering effects are documented.