hunt-rbac
Skill0 starsChanged 3 months agoMITView on GitHub
Privilege escalation and broken function-level authorization (BFLA) hunting — vertical escalation to admin, role/permission bypass, mass assignment, forced browsing to privileged actions. TRIGGER: user is testing role-based access, admin functions, multi-role or multi-tenant permissions, mass assignment, or hunting privilege escalation. Distinct from hunt-idor (object-level).
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- ffuf-web-fuzzingSkill
- hunt-aiSkill
- hunt-atoSkill
- hunt-bxssSkill
- hunt-idorSkill
- hunt-rceSkill
- hunt-reconSkill
- hunt-ssrfSkill
- hunt-vibecodedSkill
- hunt-xssSkill
- js-analyzeSkill
- triage-findingSkill
- write-reportSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use hunt-idor for swapping IDs.
- Very specific: line 36
Add privileged fields the client normally can't set, on register/profile/update:
- Distinctive: line 67
Run hits through triage-finding.
- Distinctive: line 79
Use YOUR OWN accounts/org at different privilege levels.
- Distinctive: line 85
No mass assignment that alters real balances/plans on production beyond a minimal proof on your own account.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hunt-rbac — Privilege Escalation & Broken Function-Level Authorization
You are assisting an authorized bug bounty hunter under a program's published
policy. This skill targets FUNCTION-level authorization (BFLA): "can I invoke a
privileged action or assume a role I shouldn't have?" That is DIFFERENT from
hunt-idor's object-level (BOLA) question "can I access this specific object?".
Use hunt-idor for swapping IDs; use this for crossing role/permission boundaries.
(Depth: cloned hackerone-reports/ — see access-control / privilege reports.)
Core philosophy
The app defines roles (guest, member, manager, admin) and functions each role may call. Broken RBAC = a lower role invokes a higher role's function, or grants itself a higher role. The UI hides the admin button — but hiding is not enforcing. The real check must be server-side on every privileged endpoint; missing checks are the bug.
Escalation patterns (test each)
1. Vertical escalation — low-priv invokes high-priv function
- Forced browsing: hit admin endpoints directly (
/admin,/api/admin/*,/internal/*) as a low-priv or unauth user. Enumerate them from JS bundles, API docs, and the high-priv UI. - Missing function-level check: the endpoint works even though your role shouldn't reach it. The classic — UI gates it, API doesn't.
- HTTP method / verb swap: GET is blocked but POST/PUT/DELETE isn't, or vice
versa. Also try
X-HTTP-Method-Override. - API version downgrade:
/api/v1/...lacks the authz that/api/v2/...added. Old/internal endpoints often miss checks.
2. Mass assignment / parameter injection (grant yourself the role)
Add privileged fields the client normally can't set, on register/profile/update:
role=admin,isAdmin=true,is_staff=true,permissions=[...],account_type,verified=true,plan,balance,org_role=owner.- Send them as JSON, form, and query; try nested objects. Diff what the server accepts vs the UI exposes.
3. Tenant/org role escalation
- Member -> manager -> owner inside an org; invitation/role-change endpoints that don't verify the CALLER's authority (top reports: cross-tenant privilege escalation, invitation takeover).
4. Token/claim manipulation
- Role/permission carried in a client-modifiable place: JWT claim (
role,scope) with weak/none signature (coordinate with hunt-ato JWT checks), cookie, or hidden field the server trusts.
5. Trusting client-side authz
- Server decides access from a header/param/Referer the client controls
(
X-Admin: true,?admin=1), or only enforces on the front end.
Discovery methodology
- Enumerate roles: unauth, low-priv member, high-priv/admin, org roles. Get (or register) accounts at MULTIPLE privilege levels — attacker=low, victim=high.
- Map privileged functions: from the admin UI, JS, and API docs, list every action that should require elevated role.
- Replay across the boundary: capture a privileged request (as the high-priv account) and replay it with the LOW-priv (or unauth) session. Burp's Autorize or Auth Analyzer extension automates this — it re-sends every request with a low-priv cookie and flags where access is wrongly granted. Use it.
- Mass-assignment sweep: on create/update endpoints, inject privileged params.
- Forced-browse + method/version tricks on anything that 403s.
- Run hits through triage-finding.
Impact demonstration
- Show the low-priv (or unauth) session successfully invoking the privileged action or reading admin-only data — side by side with the role that request came from.
- For self-escalation: show the field injection, then the resulting elevated role/permission on YOUR OWN account.
- State the boundary crossed: "a [role] can [privileged action] / become [higher role]."
Scope & ethics guardrails
- Use YOUR OWN accounts/org at different privilege levels. Do not escalate into a real user's or real org's admin context.
- Prove the authz gap with a benign, reversible action (read an admin-only field, a no-op admin call). Do NOT perform destructive/state-changing admin actions on live systems (deleting users, changing others' data) to "prove" it — explain the impact instead.
- No mass assignment that alters real balances/plans on production beyond a minimal proof on your own account.
- Confirm scope; if a test would affect other users or real org data, stop and ask.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

