Skip to content
Skills Library
Security · Review & audit

bulk-endpoint-object-scoping

/bulk-endpoint-object-scoping

Verify that endpoints accepting lists of identifiers apply ownership checks to every item, not just the first. Use when an endpoint takes an array of ids in the query or body, such as fetch-many, delete-many or update-many

Repository
authzmap ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Verify that endpoints accepting lists of identifiers apply ownership checks to every item, not just the first. Use when an endpoint takes an array of ids in the query or body, such as fetch-many, delete-many or update-many

Original author description

Verify that endpoints accepting lists of identifiers apply ownership checks to every item, not just the first. Use when an endpoint takes an array of ids in the query or body, such as fetch-many, delete-many or update-many

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 63 lines, 368 words
SKILL.md preview
---
name: bulk-endpoint-object-scoping
description: "Verify that endpoints accepting lists of identifiers apply ownership checks to every item, not just the first. Use when an endpoint takes an array of ids in the query or body, such as fetch-many, delete-many or update-many"
pack: authzmap
version: 1.0.0
category: api-security
tags: [bulk, arrays, object-level]
---

# Bulk Endpoint Object Scoping

> Verify that endpoints accepting lists of identifiers apply ownership checks to every item, not just the first

**Use when:** an endpoint takes an array of ids in the query or body, such as fetch-many, delete-many or update-many

**Avoid when:** the API processes exactly one identifier per request, where bulk behaviour does not exist

## Procedure

1. Identify every endpoint accepting an array, collection or batch payload of identifiers.
2. Build a mixed list containing items you own and items from your second test account, ordered both ways.
3. Send the mixed list and compare the response against expectations: refuse entirely or return only your own items.
4. Check partial-success behaviour, since an endpoint that silently skips unauthorized items may still leak their existence.
5. Test write operations in bulk, where a single unauthorized item can modify data across accounts.
6. Record per-item handling so the report can state whether the gap is leakage, modification or both.

## Signals

- A mixed list returns every item including those owned by the other test account.
- The response reports per-item status codes that reveal whether an unauthorized item exists.
- Bulk update applies to all items after validating only the first one.
- Deleting in bulk removes objects belonging to another account without error.

## Patterns

**1. Mixed batch**

```text
ids=[mine, mine, peer] expected=refuse-all or mine-only
observed=all three returned -> finding
```

**2. Existence leak**

```text
per-item result: {id: 404} for unknown, {id: 403} for peer-owned
-> 403 vs 404 distinguishes existence, report as information leak
```

**3. Result row**

```text
endpoint=POST /api/items/fetch items=3 peer_items=1 leaked=1 mode=full-disclosure
```

## Pitfalls

- Testing a homogeneous list, which cannot reveal whether per-item checks exist at all.
- Ignoring the response's per-item detail, which often leaks existence even when data is withheld.
- Assuming bulk write shares the read path's checks, when the two are frequently implemented separately.

## Done when

- Mixed lists have been tested in both orders for read and write endpoints with per-item outcomes recorded.
- The response is classified as full leak, existence leak, partial success or clean refusal.

## References

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

Versions

The database has no other skills named bulk-endpoint-object-scoping.

Database snapshot: 13.11.2026 · package version 835a6c190a33 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

No similar skills in the database.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.