bfla
What it does
This guide covers action-level access control failures, where a lower-privilege user can call an admin function. It is for security testers checking role rules across web, API and background features.
When to use it
- ✓When an authorized test wants to check whether regular users can reach admin-only actions.
- ✓When an app hides admin features in the interface but may still accept those calls.
- ✓When you need to check role rules across REST, GraphQL and other interfaces.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/bfla/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can a regular user in our app call admin-only actions by sending requests directly? Please check.”
5 new skills a week. 1 minute to read.
How it works
The agent lists the high-value actions, sends each one using a lower-privilege account in an authorized test, and reports which ones succeed when they should not.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Broken Function Level Authorization (BFLA)
BFLA is an action-level access control failure: a lower-privileged principal successfully invokes a function (HTTP endpoint, GraphQL mutation, gRPC method, WebSocket event, background job action) that should be restricted to a higher-privileged role. It is distinct from IDOR (T1190 object-level) — the surface here is the action itself, not the object ID. Enforcement must bind actor to action at every transport layer and every service boundary, not just at the UI or API gateway.
Authorized use only. Only test systems you are explicitly authorized to assess. Privilege escalation in production without authorization is a crime in most jurisdictions.
Attack Surface
- REST/JSON admin endpoints hidden from the UI but still live on the server
- GraphQL mutations and admin fields absent from the published schema but introspectable
- gRPC methods listed via server reflection that bypass gateway checks
- WebSocket events where only the handshake was authorized
- Background job create/finalize/approve endpoints that re-use session but skip role checks
- Internal microservice RPCs reachable via SSRF or exposed routing
- Feature flags enforced client-side / at edge but not at the core service
High-Value Actions
- Role/permission assignment, user impersonation, sudo/su endpoints
- Refund, credit issuance, price override, order void/cancel
- Export/bulk-download of all user data or PII
- Account suspension, deletion, reactivation, verification override
- Feature flag toggle, quota/grant adjustment, seat/license change
- 2FA reset, email-change bypass, password-reset initiation for arbitrary accounts
- Admin console CRUD (create user, delete user, assign group)
Reconnaissance
Build the Actor x Action Matrix
Before fuzzing, enumerate the roles and their expected actions:
# Capture all endpoints from JS bundles, API spec, and crawl
# Extract role-specific API paths from the frontend
curl -s https://<TARGET>/static/main.js | grep -oE '"/api/[^"]*"' | sort -u
curl -s https://<TARGET>/openapi.json 2>/dev/null | python3 -c "
import sys,json
spec = json.load(sys.stdin)
for path,methods in spec.get('paths',{}).items():
for method,info in methods.items():
tags = info.get('tags',[]) + info.get('x-roles',[]) + info.get('security',[])
print(method.upper(), path, tags)
" 2>/dev/null
For each discovered endpoint, note: HTTP method, expected minimum role, whether it appears in the UI for non-admin users.
Obtain Sessions for Each Role
# Register/obtain sessions for: unauthenticated, basic user, premium, staff, admin
# Store cookies/tokens for each role
curl -s -c unauthenticated.jar https://<TARGET>/api/me
curl -s -c basic.jar -X POST https://<TARGET>/login -d 'user=basic&pass=<pass>'
curl -s -c admin.jar -X POST https://<TARGET>/login -d 'user=admin&pass=<pass>'
Signals That BFLA Is Present
- Endpoint returns 200 for a lower-role token where 403/401 is expected
- Different HTTP methods on the same path have inconsistent enforcement (GET allowed, POST blocked — but PATCH is not)
- Admin endpoints return a different error code (404 vs 403) — "security through obscurity" that still processes the request
- Background job endpoints return 200 with a task ID even for non-admin callers
- GraphQL mutation returns data when sent from a basic-user token
Testing Methodology
Step 1: Baseline with Admin Token
Confirm each target action succeeds with the highest-privilege token first. This rules out the action being broken for everyone.
# Example: create a user as admin
curl -s -b admin.jar -X POST https://<TARGET>/api/admin/users \
-H 'Content-Type: application/json' \
-d '{"username":"testuser","role":"admin"}' | tee bfla_admin_baseline.txt
Step 2: Replay with Lower-Privilege Token
Replay the identical request with the basic-user or unauthenticated token. Same path, same method, same body.
curl -s -b basic.jar -X POST https://<TARGET>/api/admin/users \
-H 'Content-Type: application/json' \
-d '{"username":"testuser2","role":"admin"}' | tee bfla_basic_replay.txt
# Diff: admin got 201 Created, basic should get 403
diff bfla_admin_baseline.txt bfla_basic_replay.txt
Win condition: basic-user request returns 200/201/204 (or produces a durable state change verified by subsequent GET) when the admin baseline returned 201.
Step 3: Method Alternation
Many frameworks register rou
FAQ
How is this different from IDOR?
The guide says IDOR is about access to specific objects, while this issue is about the action itself.
Why do hidden features matter?
The guide notes that admin endpoints may be hidden from the interface but still live on the server.
What should be enforced?
Role checks at every service and transport layer, not only in the interface or gateway.
Details
Original description by the author
Broken Function Level Authorization (BFLA) — exploit action-level access control failures where lower-privileged principals invoke admin/staff functions across REST, GraphQL, gRPC, WebSocket, and background job paths.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14049
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.