Authorization
Controlling what each user is allowed to see and do.
Authorization decides access to data and actions, through roles, permissions or ownership rules. Broken access control is one of the most common serious vulnerabilities. Checks belong on the server, close to the data.
Why it matters for a product engineer
Authorization decides what each person may see and do. When it fails, nothing looks broken: the page works, but for the wrong person. Every new feature, endpoint and shared link adds a place where a check can be missing. The product engineer who builds the feature is the one who must build its check.
How to do it
- Deny by default. Every endpoint needs a rule, except the public ones.
- Check on the server, on every request, close to the data. A hidden button is not a check.
- Check ownership of the record, not only the role: “can this person edit invoice 1234?”, not only “is this person an editor?”.
- Write the rules once, and use them in every route, background job and API, so they cannot drift apart.
- Give agents and integrations scoped tokens, with only the access they need, and log what they do.
- Write tests that try to read and change another person’s data, once for each role.
Common mistakes
- Trusting an id from the URL or the request body. OWASP calls this an insecure direct object reference.
- Checks only in the interface.
- A new export, API or job that skips the rules the web app uses.
- Permissions that grow and are never removed.
Example
Papermark started with shared documents and grew into data rooms for deals. In September 2024 it shipped groups and file permissions, so each bidder sees only its part of a room. Its AI answers come “only from documents the token is allowed to read”. The agent tools it shipped in June 2026 follow the same rule, with scoped tokens and an append-only audit log. (Papermark in In practice)
Broken access control in the OWASP Top 10:2025
- 100%
- Tested applications with some form of it
- 1.84M
- Occurrences, the most of any category
- 40
- Weakness types (CWEs) mapped to it
It stays at number one, and every tested application had at least one case. A missing check is the normal state, not the exception.
ReportedOWASP Top 10:2025, A01
Sources: A01:2025 Broken access control (OWASP Top 10) ↗ · Authorization cheat sheet (OWASP) ↗
Resources
1- docsGo deeper
Authorization cheat sheet ↗
OWASP · 20 minDeny by default, check on the server, on every request. The rules that prevent broken access control.
Tools
1- ToolFreemium
Semgrep
Static analysis for security bugs and code patterns, with an open-source core engine.