Hunt Cards: Access Control & IDOR
Bug Bounty ยท Stage 3 โ Hunting ยท Level: L1 โ L5 ยท Reading time: ~13 min
Access control bugs are the most common high-value findings in bug bounty: rarely caught by scanners, often high severity, and testable by anyone who understands the application. If you master one category first, make it this one.
Theory: Access Control & Business Logic ยท OWASP A01:2025 ยท API Top 10
The Setup You Needโ
Org A: Owner-A, Admin-A, Member-A, Viewer-A
Org B: Owner-B <- a separate tenant
Plus: a logged-out browser
Every access-control test is a variant of the same idea: perform an action as one identity, then repeat it as another identity that should not be allowed, and see what happens. Use only accounts you created for testing.
Install Autorize in Burp. Give it Member-A's (or Owner-B's) session, then browse the app as Owner-A. Autorize repeats every request with the lower-privilege session (and with no session) and colour-codes which ones still succeeded. Then verify each flagged result by hand โ Autorize surfaces candidates, not confirmed bugs.
Card 1 โ IDOR / BOLAโ
Where it hidesโ
- Any request containing an identifier: path (
/invoices/1043), query (?userId=), JSON body ("accountId":), headers or cookies. - "Secondary" objects: attachments, comments, exports, notifications, audit logs, saved searches, API keys, webhooks, invoices.
- Write actions โ update, delete, share, transfer, approve โ which are often less protected than reads.
- Batch endpoints that take arrays of IDs.
- Mobile and older API versions of the same resource.
First testsโ
- As Owner-A, perform the action and capture the request.
- Replace the identifier with Owner-B's object ID; send it with Owner-A's session.
- Try each method on the path (
GET,PUT,PATCH,DELETE). - If IDs are random (UUIDs), find where other users' IDs legitimately appear: shared links, public profiles, team member lists, notifications, API responses, exports, email links.
- Try identifier variations: numeric vs string, wrapping in an array (
[1043]), sending the value twice, changing case on emails/slugs, appending.jsonto a path.
Escalateโ
- Read access to write or delete access is a large severity increase.
- A single object to enumeration at scale (sequential IDs) shows mass impact โ demonstrate with a couple of your own accounts' objects, never real users' data.
- Low-value fields to sensitive data (personal, financial, health, or authentication data such as reset tokens or API keys).
- IDOR on an "invite" or "add member" endpoint can mean joining any organisation โ often critical.
Prove itโ
Two accounts you own, the exact request, the response showing Account B's data returned to Account A, and a plain statement of what data or action is exposed for any user.
Why it gets rejectedโ
- The object was meant to be public (public profiles, share-by-link resources).
- IDs are unguessable and the report doesn't show how an attacker would obtain them โ show a realistic leak path when you can.
- Tested on real users' data instead of your own accounts.
- The exposed field isn't sensitive.
Card 2 โ Privilege Escalation & Function-Level Authorization (BFLA)โ
Where it hidesโ
- Admin/owner-only actions: managing members, changing roles, billing, SSO settings, API-key creation, audit logs, data exports, deleting the organisation.
- Endpoints visible in JavaScript but hidden from the lower role's UI (see JavaScript Analysis).
- Paths such as
/admin/,/internal/,/manage/,/staff/,/support/.
First testsโ
- Capture every privileged action as Admin-A.
- Repeat each one with Member-A's and Viewer-A's sessions, then with no session.
- Try to change your own role:
PATCH /api/members/mewith"role":"admin". - As a Member, try to invite someone as Admin, or edit an Admin.
Escalateโ
Viewer to Admin within one org is high; any user to admin of any org is critical. State what the gained privileges allow (export all data, take over the org, delete it).
Prove itโ
Show the low-privilege session performing the privileged action and the resulting state change โ for example, the member list showing your Viewer account now set to Admin.
Why it gets rejectedโ
The lower role was actually permitted that action by design โ check the product's role documentation first.
Card 3 โ Mass Assignment (Property-Level Authorization)โ
Where it hidesโ
Create and update endpoints that accept JSON objects: sign-up, profile update, team settings, object creation.
First testsโ
- Compare the response object's fields with what the request sends.
- Add fields that appear in responses but not in requests:
role,isAdmin,verified,emailVerified,plan,credits,balance,orgId,ownerId,createdBy,discount,price. - Try nested shapes:
"user":{"role":"admin"},"permissions":["*"], and the form-encoded equivalent (user[role]=admin). - Confirm with a fresh
GETโ the update's own response may not reflect the real change.
Escalateโ
emailVerified:true can bypass verification and open account-takeover chains; orgId can move your objects into another tenant; plan:"enterprise" can unlock paid features for free.
Why it gets rejectedโ
The field changed in the response but had no effect server-side โ always verify the behaviour actually changed.
Card 4 โ Multi-Tenant Data Leaksโ
Where it hidesโ
Search, filters, autocomplete, dashboards, reports, exports, recent-activity and notification feeds, and global lookups (for example "find user by email" during an invite).
First testsโ
- Place a unique string in Org B, then search for it while logged in as Org A.
- Use filter and sort parameters with another tenant's IDs.
- Check autocomplete and invite-by-email endpoints for leaking other tenants' users.
- Test ORM-style filter parameters (
?filter[owner][email]=,?where=, GraphQL filters) for ORM leaks โ filtering on a related field you can't see directly can disclose data a character at a time.
Escalateโ
Cross-tenant access on a B2B product is usually rated high or critical because it breaks the product's core promise.
Card 5 โ Unauthenticated Accessโ
Where it hidesโ
APIs called by the front end, file-download links, export URLs, WebSocket endpoints, GraphQL, mobile APIs, "preview" endpoints.
First testsโ
Remove the cookie and Authorization header from each interesting request and resend. Also try an expired or malformed token โ some servers treat "invalid" as "anonymous but allowed."
Quick Reference: Where IDs Leakโ
When identifiers are unguessable, these are the usual places another user's ID becomes visible:
Shared links & invitations Public profiles & directories Team member lists
Comments, mentions, @-tags Notification payloads Activity / audit feeds
Email links Exported files (CSV, PDF) WebSocket messages
Error messages Search & autocomplete Analytics/tracking calls
Mobile API responses Old API versions GraphQL introspection
Key Takeawaysโ
- Build a multi-role, multi-tenant test setup with accounts you own before testing.
- Repeat every request across identities โ Autorize speeds this up, manual verification confirms it.
- Escalate by showing write access, scale, or sensitive data, and state the real impact.
- Prove findings with your own accounts only.