04.6.2 · Skill in Security and privacy engineering

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.

Your status · Authorization

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

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

  1. Deny by default. Every endpoint needs a rule, except the public ones.
  2. Check on the server, on every request, close to the data. A hidden button is not a check.
  3. Check ownership of the record, not only the role: “can this person edit invoice 1234?”, not only “is this person an editor?”.
  4. Write the rules once, and use them in every route, background job and API, so they cannot drift apart.
  5. Give agents and integrations scoped tokens, with only the access they need, and log what they do.
  6. 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)

Numbers

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 min

    Deny by default, check on the server, on every request. The rules that prevent broken access control.

Tools

1
Tools for Security and privacy engineering
  • ToolFreemium
    Semgrep

    Static analysis for security bugs and code patterns, with an open-source core engine.