Peer Object Access Review
Verify that one account cannot read or modify an object owned by another account using identifiers you legitimately obtain
Use when: you hold two test accounts and an endpoint takes an object identifier in its path, query or body
Avoid when: you have only one account, where peer access cannot be demonstrated without touching data you do not own
Procedure
- Create two accounts you own and give each a clearly labeled object so any crossover is unambiguous.
- Perform the operation as the owner first and record the exact successful response as your reference.
- Repeat the identical request with the second account's credential, changing only the credential.
- Expect a refusal (403 or 404) and record the actual status, body shape and any timing difference.
- Repeat for write and delete methods separately, because read checks and write checks are often implemented independently.
- Log each result against the matrix cell it corresponds to, and escalate any 200 or partially successful response.
Signals
- The peer account receives a 200 response containing the owner's labeled fixture.
- Read is refused but the write method succeeds, which indicates method-specific checks.
- A 404 appears where documentation promises 403, which may hide the object's existence inconsistently.
- Partial data returns, such as metadata without content, which is still an information leak worth reporting.
Patterns
1. Test pair
owner=alice-test object=ORDER-ALPHA-001
peer= bob-test same id, same method, peer credential
expected=403 or 404 observed=200 -> finding
2. Method sweep
GET -> 403, PATCH -> 200, DELETE -> 404
-> write path missing the ownership check
3. Result row
path=/api/orders/{id} methods=[GET,PATCH,DELETE] owner=alice peer=bob outcomes=[403,200,404]
Pitfalls
- Testing with a single account and a guessed identifier, which risks touching someone else's data.
- Checking only GET when the damaging operation is PATCH or DELETE.
- Concluding safety from a 404 alone without confirming the object still exists and the peer simply cannot see it.
Done when
- Each tested method returns a refusal for the peer credential, and the outcome is recorded against the matrix cell.
- Both directions are covered (peer reads owner's object, owner reads peer's object) using only accounts you own.