access-control
Skill0 starsChanged 6 days agoMITView on GitHub
Focused hunt for broken access control: IDOR/BOLA, horizontal and vertical privilege escalation, forced browsing, mass assignment, tenant isolation. Use when the focus is authorization bugs between authenticated users/roles on a web target or API. Not for authentication/ATO (use ato) or business logic abuse (use business-logic).
3 other projects use a version of this.
Adopted by
Most recently taken up by
- emre-guler/websectheir own version, first seen Aug 27, 2026
- iktok90-design/ai-smart-contract-auditortheir own version, first seen Jul 2, 2026
- hereshecodes/secureskillstheir own version, first seen Mar 4, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- iktok90-design/ai-smart-contract-auditor★ 36same name
- emre-guler/websec★ 2same name
- hereshecodes/secureskills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- atoSkill
- business-logicSkill
- cloudSkill
- cmd-injectionSkill
- fuzzingSkill
- graphqlSkill
- huntSkill
- info-leakSkill
- jwtSkill
- known-cvesSkill
- llm-securitySkill
- oauthSkill
- open-redirectSkill
- osintSkill
- param-pollutionSkill
- raceSkill
- reconSkill
- reportSkill
- request-smugglingSkill
- sqliSkill
- ssrfSkill
- sstiSkill
- upload-traversalSkill
- xssSkill
- xxeSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Every finding needs a reproduced cross-account request: the same request succeeds as B using A's resource ID.
- Distinctive: line 36
Before concluding an ID is unguessable, check every source of OTHER users' identifiers from A's own account:
- Distinctive: line 47
Read endpoints: B reads A's data (BOLA).
- Distinctive: line 48
Write endpoints: B modifies A's resource (e.g.
- Distinctive: line 52
When one endpoint DOES enforce ownership (e.g., returns 200 for A's GUID and 403/404 for a foreign one), use it as an oracle before …
- Distinctive: line 59
If roles exist (user/admin, member/owner, free/paid):
- Very specific: line 69
If org/workspace IDs appear: switch tenantId/orgId in A's requests to B's tenant.
- Very specific: line 80
Run Semgrep over the source: p/owasp-top-ten and p/idor-style rules on the API handlers.
- Very specific: line 84
Write findings to findings/access-control-<date>.md.
- Very specific: line 99
If exploitation requires race conditions or price tampering, hand off to business-logic as a lead.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Access Control (IDOR / BOLA / Privilege Escalation)
When to use
- "Hunt IDOR on X", "test authorization of X", "check tenant isolation on X"
- OWASP coverage: A01 Broken Access Control
- Works best with two accounts of different users and, if possible, different roles (grey box)
When NOT to use
- Login/session bugs (use
ato) - Price tampering, race conditions (use
business-logic)
Inputs
- Target: base URL(s) and API endpoints (from
reconprofile if available) - Accounts: two user accounts (A=victim, B=attacker). Optionally one admin account for vertical tests.
- Artifacts: API docs (swagger/openapi) if discovered — enumerate all state-changing endpoints first.
Ground rules
- Every finding needs a reproduced cross-account request: the same request succeeds as B using A's resource ID.
- Swap IDs one at a time; never mutate both identity and object at once.
- Record the exact "object reference" you abused (numeric ID, UUID, email, filename, path).
Methodology
1. Enumerate object references (identifier source discovery)
With A's session, walk the app/API: collect every identifier in URLs, bodies, headers (X-User-Id), and cookies. Classify: user IDs, order IDs, document IDs, tenant/org IDs, role fields.
Before concluding an ID is unguessable, check every source of OTHER users' identifiers from A's own account:
- Verbose responses: GET every list/detail endpoint as A; diff the full JSON against what the UI renders. Fields the UI never shows (other users' GUIDs, tenant IDs,
owner/createdBy, internal flags) are prime IDOR fuel. - Hidden/nested fields: arrays,
*Guid/refId/parent*keys, embedded objects of related records, response envelopes. - Exports and documents: CSV/PDF/invoice/order confirmation endpoints that embed references to other objects or users.
- Shared-context responses: search results, public listings, comments, collaborator lists, support tickets.
- Client storage and JS: localStorage, IndexedDB, source maps, state embedded in the page bundle.
Record for each source: endpoint, field path, and whether the identifier is A's own or plausibly someone else's. A response returning an orderGuid that is not A's is a source — hunt it before brute-forcing.
2. Horizontal tests (same role, different user)
For each state-changing or data-reading endpoint: replay B's request with A's object reference.
- Read endpoints: B reads A's data (BOLA).
- Write endpoints: B modifies A's resource (e.g. delete, update email/phone of A).
- Watch for UUIDs: even non-sequential, they can leak via any source in step 1 — always establish where the app learns the ID from.
3. Confirm identifier validity with an authorization oracle
When one endpoint DOES enforce ownership (e.g., returns 200 for A's GUID and 403/404 for a foreign one), use it as an oracle before spending requests on endpoints that may lack the check:
- Fire the candidate GUID at the enforcing endpoint first: 200 = valid and yours, 403/404 = valid-but-foreign or invalid, and note which.
- A GUID confirmed valid-but-foreign (distinguish 403 "not yours" from 404 "not found" if the API differentiates) is the ideal payload for testing the endpoints suspected to skip the check.
- Same differential on the enforcing endpoint maps its own error semantics — needed to interpret results on the unguarded ones.
- Rate-limit oracle calls; the oracle is a reconnaissance tool, never the finding. The finding is the cross-account success on the endpoint missing the check (step 2 rules still apply: same request succeeds as B on A's object).
4. Vertical tests (role escalation)
If roles exist (user/admin, member/owner, free/paid):
- Reach admin/privileged endpoints as a low-priv user (forced browsing:
OPTIONS, direct POST, guessing admin routes from JS/admin JS files). - Admin response tampering: remove UI but does the API still authorize?
- Role field in requests:
role: "admin",isAdmin: true,admin=trueparams (mass assignment). - Register a user with extra fields; check profile update accepting
role/plan/activefields.
5. Mass assignment
On profile/update endpoints, add hidden fields: role, permissions, plan, price, verified, balance, tenantId. Compare the stored object before/after.
6. Multi-tenant isolation
If org/workspace IDs appear: switch tenantId/orgId in A's requests to B's tenant. Test data reads, invites, exports, and webhooks cross-tenant.
7. Indirect object references and GraphQL
- GraphQL: query another user's object by ID; check field-level authz (query user A's fields as B); introspection for hidden queries/mutations.
- Pre-signed URLs, tokens: does the URL expire, is it bound to the object only, can it be reused by another user?
8. Verify absence of checks, not just presence
For each endpoint, record whether authorization was enforced. A table endpoint | authz enforced? | notes is part of the report — negative results are valuable coverage evidence.
Grey box bonus (source or PR available)
- Run Semgrep over the source:
p/owasp-top-tenandp/idor-style rules on the API handlers; confirm each hit with a live cross-account request before reporting (source hints are hypotheses, not findings).
Reporting
Write findings to findings/access-control-<date>.md. Format per finding:
### [SEVERITY] Title
- Endpoint(s): method + URL
- CWE: CWE-639 (IDOR) / CWE-284 / CWE-915 (mass assignment)
- Evidence: B's request against A's object + response showing A's data or the modified state
- Reproduction: numbered steps
- Impact: data exposure, data tampering, privilege gainedAlso include the coverage table from step 7.
Focus discipline
If exploitation requires race conditions or price tampering, hand off to business-logic as a lead.
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.

