Object ID Surface Mapping
Map where the application exposes object identifiers, which is the first step toward reviewing object-level authorization
Use when: the application is API-driven or parameterized by identifiers, and you need a list of every identifier entry point
Avoid when: the interface exposes no identifiers at all, where the surface simply does not exist to map
Procedure
- Collect identifier-bearing locations from responses: paths, query strings, request bodies, headers and pagination tokens.
- Classify each identifier: sequential integer, UUID, composite key, opaque token or encoded structure.
- Note which identifiers appear in responses the client is not meant to edit, since those are the classic exposure points.
- Trace where each identifier flows: read operation, write operation, export or deletion path.
- Group identifiers by object type so later review can reason per resource rather than per request.
- Store the map as a table linking identifier, location, operation and object type for the next testing phase.
Signals
- Sequential integers appear in paths for objects that clearly belong to different accounts.
- Identifiers leak into responses for objects the current session has no legitimate relationship with.
- Encoded structures decode into predictable fields such as account id and role.
- Pagination tokens embed the previous query's identifiers, revealing objects beyond the current view.
Patterns
1. Identifier table
location=/orders/{id} type=int op=read object=order flow=response->request
location=X-Object-Id type=uuid op=write object=file flow=response->header
2. Classification
sequential -> predictability risk, prioritize review
uuid -> not predictable, still needs authorization check
encoded -> decode offline, fields often include role or owner
3. Scope note
map only; do not walk other users' objects without authorization to test with your own data
Pitfalls
- Treating identifier mapping as proof of a vulnerability, when the actual check happens server-side and untested.
- Accessing objects that belong to other users during mapping, which crosses an authorization boundary you have not been granted.
- Mapping only paths and missing identifiers that hide in headers, bodies and tokens.
Done when
- Every identifier location is recorded with type, operation and object type, drawn from all four positions.
- Mapping used only your own data and objects, and the resulting table is queued for authorized access-control review.
References
1---2name: object-id-surface-mapping3description: "Map where the application exposes object identifiers, which is the first step toward reviewing object-level authorization. Use when the application is API-driven or parameterized by identifiers, and you need a list of every identifier entry point"4pack: reconcraft5version: 1.0.06category: bug-bounty-tooling7tags: [idor, api, authorization]8metadata:9 source: https://skillmd.com/skills/wsh7ash/object-id-surface-mapping10---1112# Object ID Surface Mapping1314> Map where the application exposes object identifiers, which is the first step toward reviewing object-level authorization1516**Use when:** the application is API-driven or parameterized by identifiers, and you need a list of every identifier entry point1718**Avoid when:** the interface exposes no identifiers at all, where the surface simply does not exist to map1920## Procedure21221. Collect identifier-bearing locations from responses: paths, query strings, request bodies, headers and pagination tokens.232. Classify each identifier: sequential integer, UUID, composite key, opaque token or encoded structure.243. Note which identifiers appear in responses the client is not meant to edit, since those are the classic exposure points.254. Trace where each identifier flows: read operation, write operation, export or deletion path.265. Group identifiers by object type so later review can reason per resource rather than per request.276. Store the map as a table linking identifier, location, operation and object type for the next testing phase.2829## Signals3031- Sequential integers appear in paths for objects that clearly belong to different accounts.32- Identifiers leak into responses for objects the current session has no legitimate relationship with.33- Encoded structures decode into predictable fields such as account id and role.34- Pagination tokens embed the previous query's identifiers, revealing objects beyond the current view.3536## Patterns3738**1. Identifier table**3940```text41location=/orders/{id} type=int op=read object=order flow=response->request42location=X-Object-Id type=uuid op=write object=file flow=response->header43```4445**2. Classification**4647```text48sequential -> predictability risk, prioritize review49uuid -> not predictable, still needs authorization check50encoded -> decode offline, fields often include role or owner51```5253**3. Scope note**5455```text56map only; do not walk other users' objects without authorization to test with your own data57```5859## Pitfalls6061- Treating identifier mapping as proof of a vulnerability, when the actual check happens server-side and untested.62- Accessing objects that belong to other users during mapping, which crosses an authorization boundary you have not been granted.63- Mapping only paths and missing identifiers that hide in headers, bodies and tokens.6465## Done when6667- Every identifier location is recorded with type, operation and object type, drawn from all four positions.68- Mapping used only your own data and objects, and the resulting table is queued for authorized access-control review.6970## References7172- [OWASP API Security Top 10 - BOLA](https://owasp.org/www-project-api-security/)73- [OWASP Web Security Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)