Broken access control — IDOR/BOLA, horizontal and vertical privilege escalation, function-level authorization gaps, mass assignment / parameter tampering, forced browsing, and multi-tenant isolation failures. Systematic multi-account comparison methodology. Use whenever the app has object IDs, roles, tenants, or privileged functions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Web Access Control?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-web-access-control)
---
name: web-access-control
description: Broken access control — IDOR/BOLA, horizontal and vertical privilege escalation, function-level authorization gaps, mass assignment / parameter tampering, forced browsing, and multi-tenant isolation failures. Systematic multi-account comparison methodology. Use whenever the app has object IDs, roles, tenants, or privileged functions.
---
# Broken Access Control (IDOR / BOLA / Privilege Escalation)
The #1 web risk. Testing it well requires at least two accounts (and ideally one of each role) so you can compare who can do and see what. Access control can't be inferred from a single session — you must try to cross the boundary.
## Trigger phrases
`idor, bola, broken access control, privilege escalation, authorization, horizontal privesc, vertical privesc, mass assignment, forced browsing, multi-tenant, object reference`
## Setup
Obtain/define: two same-role users (A, B) and, if possible, a low-priv and an admin user. Map every role's intended capabilities. Capture a request set per role.
## 1. IDOR / BOLA (object-level)
For every request referencing an object (`?id=`, `/users/123`, `/orders/456`, UUIDs, filenames, account numbers, JSON `"userId"`):
- As user A, swap the identifier to user B's object. Does A read/modify B's data? ⇒ IDOR.
- Test all verbs: GET (read), PUT/PATCH/POST (modify), DELETE (destroy).
- **Guessable vs unguessable IDs:** sequential ⇒ enumerate; UUID/GUID ⇒ still test (leaked in other responses, emails, referers, predictable, or v1 time-based). Harvest IDs from other endpoints.
- **Hidden-location IDs:** body, JSON, cookies, custom headers, path, and nested objects — not just query string.
- **Encoded/hashed IDs:** base64/MD5 of a number is not access control — decode, change, re-encode.
## 2. Function-level authorization (vertical)
- Take every admin/privileged request (from the admin session or discovered endpoints) and replay it as a low-priv or unauthenticated user. If it works ⇒ missing function-level auth.
- **Forced browsing:** request `/admin`, `/admin/users`, `/api/internal/*`, `/actuator`, debug routes directly.
- **Method/verb tampering:** if `GET /admin` is blocked, try `POST`, `HEAD`, `OPTIONS`, `PUT`, or `X-HTTP-Method-Override`.
- **Referer/UI-only controls:** some apps only hide buttons — the endpoint still works.
## 3. Horizontal escalation & tenant isolation
- Act on peer users' resources (same role, different owner). In multi-tenant SaaS, try to read/write another tenant's data by swapping tenant IDs, org IDs, or subdomain context.
## 4. Mass assignment / parameter tampering
- Add fields the UI doesn't send: `"role":"admin"`, `"isAdmin":true`, `"verified":true`, `"balance":9999`, `"user_id":<other>`, `"approved":true`, `"price":0`.
- Discover bindable fields from GET responses, API schemas, or by guessing framework conventions (Rails/Spring/Django model attrs). Send them on create/update endpoints.
- Overwrite ownership on create (`owner_id`), elevate during registration, or change immutable fields via a different endpoint.
## 5. Access-control bypass patterns
- **Path normalization:** `/admin/..;/`, `/./admin`, `/%2e/admin`, double-encoding, trailing `/`, case changes (→ also `web-request-smuggling`/`forbidden-bypass`).
- **Header-based:** `X-Original-URL`, `X-Rewrite-URL`, `X-Forwarded-For: 127.0.0.1`, `X-Forwarded-Host` to pass "internal only" checks.
- **State/step skipping:** jump directly to a later step of a flow (checkout, KYC) without completing prior gates.
## 6. Depth & chaining
- IDOR on a write endpoint ⇒ account takeover (change victim's email/password), privilege change, or financial impact.
- Combine with weak IDs + enumeration for mass data exposure (score as one systemic finding).
- Mass assignment `role=admin` ⇒ full vertical escalation.
## Method discipline
- Build a role × endpoint matrix in `./.zazy/surface.md`: for each endpoint, expected vs actual access per role. Every cell where actual > expected is a finding.
- Always confirm with a clean replay in the *other* user's context and show the cross-boundary data in evidence (both sessions side by side).
## Evidence
Two-session proof: A's request returning B's data (or performing B's/admin's action), with identifiers and both identities shown.