← LeaderboardThe Skill Leaderboard

api-authorization-and-bola

API authorization and BOLA testing playbook. Use when APIs expose object identifiers, nested resources, hidden writable fields, or weak function-level authorization.

Published by yaklang ↗yaklang/hack-skills

Try your first task

Create a focused two-account authorization test matrix

Start a fresh conversation.

Use the api-authorization-and-bola skill to review the supplied authorized API request captures for Account A and Account B. Create a small replay matrix covering create, read, update, and delete operations, cross-account object identifiers, nested resources, alternate HTTP verbs, and hidden writable fields. Do not execute requests; return the prioritized matrix and the evidence each test should capture.

Required inputs

  • Authorized testing scope
  • Sanitized request and response captures for Account A
  • Sanitized request and response captures for Account B
  • Known object identifiers and role differences

Suggested template by Skill Leaderboard, grounded in the linked source. Task evidence ↗

SKILL.md

name: api-authorization-and-boladescription: >-  API authorization and BOLA testing playbook. Use when APIs expose object identifiers, nested resources, hidden writable fields, or weak function-level authorization.

SKILL: API Authorization and BOLA — Object Access, Function Access, and Mass Assignment

AI LOAD INSTRUCTION: Use this skill when an API exposes object IDs, nested resources, or role-sensitive functions and you need a focused authorization test path: BOLA, BFLA, method abuse, and hidden field control.

1. CORE TEST LOOP

  1. Create Account A and Account B.
  2. As Account A, capture create, read, update, and delete flows.
  3. Replay with Account B's token.
  4. Test sibling endpoints, nested endpoints, and alternate HTTP verbs.

2. TEST SURFACES

SurfaceExample
object read/api/v1/orders/123
nested object/api/v1/users/1/invoices/9
admin or internal function/api/v1/admin/users
update pathPUT, PATCH, DELETE variants
hidden JSON fieldsrole, org, verified, tier

3. QUICK PAYLOADS

{"role":"admin"}
{"isAdmin":true}
{"org":"target-company"}
{"verified":true}

4. WHAT TESTERS MISS

  • object IDs in headers, cookies, GraphQL args, and nested objects
  • alternate methods sharing the same route but weaker authz
  • parent check present, child resource check missing
  • admin docs revealing extra writable fields

5. NEXT ROUTING