# 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

- Skill: `wsh7ash/peer-object-access-review` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/peer-object-access-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/peer-object-access-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/peer-object-access-review

---


# 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

1. Create two accounts you own and give each a clearly labeled object so any crossover is unambiguous.
2. Perform the operation as the owner first and record the exact successful response as your reference.
3. Repeat the identical request with the second account's credential, changing only the credential.
4. Expect a refusal (403 or 404) and record the actual status, body shape and any timing difference.
5. Repeat for write and delete methods separately, because read checks and write checks are often implemented independently.
6. 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**

```text
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**

```text
GET -> 403, PATCH -> 200, DELETE -> 404
-> write path missing the ownership check
```

**3. Result row**

```text
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.

## References

- [OWASP API Security Top 10 - BOLA](https://owasp.org/www-project-api-security/)
- [PortSwigger - IDOR](https://portswigger.net/web-security/idor)

