Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Broken Access Control

Direct answer

Broken access control (OWASP A01) lets users act outside their permissions, such as viewing others' records by changing an ID in the URL. Enforce authorization server-side on every request and deny by default.

When to use this

Use this when users can act outside their permissions (OWASP A01).

First 30 seconds

1. Broken access control: users act outside permissions (IDOR, privilege escalation).

2. Enforce server-side on every request.

3. Deny by default.

4. Test with multiple roles.

5. Log failures.

Operational verification

request → server-side authorisation → allow/deny

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations
Scope / prerequisiteUse this when users can act outside their permissions (OWASP A01).
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Checking authorization only in the UI.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Check authorization on every request server-side.
  • Changing an ID in a URL must not reveal other data.
  • Deny by default.
Key checks
  • Authorisation tests (IDOR, forced browsing) — access control
  • curl -H 'Authorization: Bearer <userA>' https://<api>/users/<userB-id> — IDOR test
  • Server-side checks on every request — deny by default
ReferenceWhy it matters1 section · depth on demand

Defences

  • Deny by default; check authorisation on the server for every request and object (not only hiding buttons).
  • Check ownership: /invoice/1043 must belong to the logged-in user (prevents IDOR).
  • Central authorisation logic instead of checks spread across handlers.
  • Test with two users and swap IDs; log and alert on access-control failures.
ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Broken access control means users can act outside their intended permissions: viewing other users' data by changing an ID in a URL, accessing admin functions without the role, or modifying records they should only read. It is the most common serious web vulnerability.

Prevention:

PracticeDetail
Deny by defaultEvery endpoint requires an explicit authorisation decision
Server-side checksNever rely on hidden UI elements or client-side checks
Object-level authorisationVerify the user owns or may access the specific record
Centralised enforcementOne authorisation component, reused everywhere
TestsAutomated tests that try access with wrong roles/users
LoggingLog access-control failures and alert on patterns

APIs are especially affected (broken object-level authorisation), because IDs are directly exposed in requests.

Typical flaws

FlawExample
IDOR / BOLAGET /api/invoices/1043 returns another customer's invoice
Missing function-level checkNormal user calls /admin/deleteUser
Privilege escalation via parameterrole=admin accepted in a profile update
Forced browsingUnlinked admin pages reachable by URL
CORS misconfigurationOther sites read authenticated responses

Test with two users of different roles and swap IDs and tokens between them.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in OWASP → Broken Access Control. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://owasp.org/www-project-application-security-verification-standard/ · confidence 94%
Confirmation

Confirm action

Continue?