mcpField
A
api-authorization-and-bola

api-authorization-and-bola

github.com/yaklangSecurity2.6k3.8k installsUpdated 6w ago
Repository

About api-authorization-and-bola

api-authorization-and-bola is a focused security testing skill for API object and function authorization, including BOLA, BFLA and mass assignment. It provides a test loop using two accounts and guidance for probing related endpoints, methods and hidden fields.

Key features

  1. 01BOLA 与 BFLA 测试流程
  2. 02双账户令牌重放检查
  3. 03嵌套资源与端点覆盖
  4. 04替代 HTTP 方法测试
  5. 05隐藏字段控制检查

Use cases

  1. 01比较不同账户的对象访问
  2. 02检查嵌套资源授权
  3. 03测试管理功能的访问控制
  4. 04验证隐藏字段是否可写

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/yaklang/hack-skills --skill api-authorization-and-bola

After installing, type/api-authorization-and-bolain Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported