# Broken Access Control

> When an app lets people see or change things that are not theirs.

**Field:** Software Development  
**Category:** Security  
**Also known as:** Insecure Direct Object Reference, IDOR, Missing Authorization Check

## Think of it like

Think of it like a hotel where one key fits all the doors.

## Definition

Broken access control means an app lets people do things they should not be allowed to do. A user might see someone else's orders just by changing a number in the address. Or a normal user reaches an admin page that was only hidden, not locked. The app checked who you are, but not what you may touch. It is first on the 2025 OWASP Top 10 list.

## Example

Jack opens /orders/1041 and sees his order. He types 1042 and sees a stranger's address, because the server never checked the owner.

## Why it matters

It is the most common serious flaw in web apps. One missing check can leak every user's data.

## Common mistake

Hiding a button and calling it safe. The server must check each request, because anyone can send one by hand.

## Three principles

- **Check every request.** On the server, not in the page.
- **Deny by default.** Allow only what was granted.
- **Check the owner.** The record must belong to the user.

## Related terms

- [Authorization](https://learn.benibix.com/term/development/authorization)
- [OWASP Top 10](https://learn.benibix.com/term/development/owasp-top-10)
- [Role-Based Access Control (RBAC)](https://learn.benibix.com/term/development/role-based-access-control)
- [Principle of Least Privilege](https://learn.benibix.com/term/development/principle-of-least-privilege)
- [Security Vulnerability](https://learn.benibix.com/term/development/vulnerability)

![A table of four attacks, with what the attacker sends and what goes wrong. SSRF sends preview?url=http://10.0.0.5/admin, and the server fetches its own private page. Path traversal sends view?file=../../../etc/passwd, and a server file is sent back. Broken access control asks for /orders/1042, not his own, and a stranger's order is shown. Remote code execution, lit up, sends a booby-trapped upload or request, and the attacker's code runs on the server.](https://learn.benibix.com/diagrams/dev2-server-attacks.svg)

---

Source: https://learn.benibix.com/term/development/broken-access-control
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
