bittersecurity/decepticon/bfla
Claude Code and agent skill by bittersecurity/decepticon
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install bittersecurity/decepticon/bflaSKILL.md
The same SKILL.md was published earlier as bittersecurity/decepticon/bfla.
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:
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
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.
Step 2: Replay with Lower-Privilege Token
Replay the identical request with the basic-user or unauthenticated token. Same path, same method, same body.
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 route handlers per-method independently. An admin-only POST may have an unguarded PUT/PATCH/DELETE.
Look for: method returning 200/204 where others return 403. Also try X-HTTP-Method-Override: DELETE on a POST request.
Step 4: Transport / Encoding Alternation
Step 5: GraphQL Mutations
Step 6: Background Jobs and Webhooks
Job-create endpoints are often allowed for all users; finalize/approve are not guarded independently:
Step 7: Header Trust Bypass
Some backends trust identity headers injected by a gateway/proxy. Supply conflicting headers:
Verification
A confirmed BFLA finding requires:
- Baseline contrast: admin token → 200/201; basic token → 200/201 (should be 403)
- Durable state change: subsequent GET or audit log confirms the privileged action persisted
- Minimal repro: single request that demonstrates the bypass (no intermediary steps)
gRPC-Specific Testing
Common Framework Weaknesses
| Framework | Pattern | Gap | |
|---|---|---|---|
| Express/Node | router.post('/admin', adminMiddleware) missing on router.put | Method alternation bypass | |
| Django DRF | permission_classes = [IsAdmin] set at ViewSet but missing on action-level @action | Custom action without permission decorator | |
| Spring Security | antMatchers("/admin/**").hasRole("ADMIN") but /admin (no slash) not matched | Trailing-slash bypass | |
| FastAPI | Dependency injection on route but not on background task handler | Background task runs with no caller | |
| GraphQL (generic) | Top-level query auth but resolver-level checks absent | Nested mutation bypass |
ATT&CK Mapping
- T1190 — Exploit Public-Facing Application (initial access via unguarded admin endpoint)
- T1078.001 — Valid Accounts: Default Accounts (when function-level bypass yields admin account creation)
- T1548 — Abuse Elevation Control Mechanism (privilege escalation via unguarded elevation endpoint)
Detection Notes
Defenders should look for: a non-admin session token successfully invoking /admin/ or /staff/ paths (log the 200 response code alongside the token's role claim), unexpected role changes in audit logs, and GraphQL mutations from non-staff tokens that modify privileged fields.
Output Files
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/decepticon/decepticon/skills/standard/exploit/web/bfla/SKILL.md
Popularity
- Repository stars
- 6,605
- Repository forks
- 1,264
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bittersecurity/decepticon/bfla)