Skip to content
Access control Write-up Beginner

BAC to Full Takeover: How I Escalated Privileges and Kicked Out the Real Owner💥

An Admin in a multi-tenant SaaS could send an invitation with the role set to owner, because the backend did not check whether the caller was allowed to grant that role. The invited account then became a full Owner and could remove the real Owner, taking over the organisation.

MD Mainul Islam Siam Follow

Published on medium.com

Broken Access Control

MD Mainul Islam Siam, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target was a multi-tenant SaaS application with an organization management system. The platform defined three roles:

Role Intended powers
Owner Billing, member management, organization deletion
Admin Daily operations and inviting new team members, with restricted permissions
Member Standard user with basic read/write access

The feature under test was the Team Invitations panel, where an administrator invites a new person by email and assigns them a role. The question the researcher set out to answer was whether the backend API checks the inviter's authority to assign a given role, or whether the restriction lives only in the browser's dropdown.

Setup

Two accounts were created:

  1. Account_A, the primary, legitimate Organization Owner.
  2. Account_B, an account invited by Account_A as an Admin.

The researcher logged into Account_B (Admin), typed a secondary test email address into the invitation form, selected Admin from the role dropdown, and used Burp Suite to capture the HTTP request before it reached the server.

Me rapidly testing requests in Burp Suite. From the original on medium.com
Me rapidly testing requests in Burp Suite.

Finding it

When testing as an Admin, the Team Invitations panel offered only two roles in its dropdown: Admin or Member. The Owner option was completely missing from the UI menu.

Text
[ What the UI Showed to an Admin ]
Role Options: ⭕ Member ⭕ Admin ❌ Owner (Option completely hidden)

At first glance the application looked secure. The researcher's question was whether the backend API actually checks that the caller is allowed to assign the Owner role, or whether it merely hides the option in the browser. Hiding an option in the UI is not access control: if the server blindly trusts data coming from the browser without re-checking permissions, that is Broken Access Control.

Exploitation

Step 1: Capture the invitation request

With Account_B logged in as Admin, the invitation request was intercepted in Burp Suite. The clean JSON payload on its way to the backend API looked like this:

HTTP
POST /api/v1/organization/invitations HTTP/1.1
Host: target-app.com
Authorization: Bearer <ADMIN_JWT_TOKEN>
Content-Type: application/json
JSON
{
  "email": "[redacted]",
  "role": "admin"
}

The request is authenticated with the Admin's bearer token, and the role to grant is taken from the JSON body as a plain client-supplied string.

Step 2: Tamper with the role

The critical test was to replace "admin" with "owner" in the JSON body:

JSON
{
  "email": "[redacted]",
  "role": "owner"
}

The researcher forwarded the modified request expecting a 403 Forbidden with a message along the lines of "Admins are not allowed to invite Owners." Instead the server answered 201 Created.

The server actually accepted role=owner…. From the original on medium.com
HTTP
HTTP/1.1 201 Created
Content-Type: application/json
JSON
{
  "status": "success",
  "message": "Invitation sent successfully",
  "data": {
    "role": "owner"
  }
}

The backend trusted the parameter passed in the API body without verifying that Account_B, an Admin, had the authority to grant Owner status. The response echoes back "role": "owner".

Step 3: Accept the invitation

The researcher opened the invitation email sent to [redacted] and completed registration.

Step 4: Confirm the escalation

The newly registered account immediately held full Owner status in the organization.

Step 5: Lock out the real owner

Logged in as the rogue Owner, the researcher went to Organization Settings ➔ Members, clicked on Account_A (the real original Owner), and clicked Remove.

From Admin to Owner in less than 2 minutes!. From the original on medium.com

The full chain, as the researcher summarised it:

Text
🛡️ Admin User (Account B)
       │
       ▼ (Intercept & Tamper: "role": "owner")
📩 Unauthorized Owner Invitation Sent
       │
       ▼ (Accept Invitation Link)
👑 Escalated to Full Owner Privileges
       │
       ▼ (Revoke Access)
❌ Original Owner Removed from Tenant
       │
       ▼
💥 Complete Organization Takeover Achieved!

In less than two minutes, a lower-privileged Admin seized the entire tenant and locked out the real owner permanently.

Root cause

The invitation endpoint accepted the role value from the request body and created the invitation with it, without checking whether the authenticated caller was permitted to grant that role. The only restriction on assigning Owner was the absence of the option in the Admin's dropdown, a client-side UI control. Because the server trusted the client-supplied role, the hidden option could be supplied directly in the JSON body. Hiding the Owner option from Admins did not stop the attack.

Impact

  • Severity: Critical (CVSS 9.1), as assessed in the report.
  • Impact type: Broken Access Control / Privilege Escalation.
  • Confidentiality: Total exposure of sensitive company records, customer details and API tokens.
  • Integrity: Complete administrative authority to alter or wipe out organizational resources.
  • Availability: Irreversible lockout of legitimate administrators.

From there, the attacker can mint an Owner account, take over the tenant, and remove the real Owner, locking them out permanently.

Fix

The report states that the issue was patched on the backend. Role assignment must never rely on the UI hiding an option.

Variants to test

  1. Other role fields in the same API. Change role to any value the UI does not offer (for example a super-admin or billing role) on invitation, member-update and role-change endpoints. A positive result is a 2xx response that echoes the elevated role or a subsequent session showing the higher privileges.
  2. Mass assignment on registration or profile update. Add role or permission fields to JSON bodies sent by a low-privileged user. A positive result is the server accepting and persisting the field.
  3. Invitation acceptance flow. Tamper with the role on the accept-invitation request rather than the create-invitation request. A positive result is the accepted account landing with a role higher than the one originally assigned.
  4. Member role change by a lower role. As an Admin, send a role-change request for an existing member to Owner. A positive result is the member's privileges changing to Owner.
  5. Removal and ownership transfer endpoints. As an Admin, attempt to remove the Owner or transfer ownership. A positive result is the Owner being removed or the ownership moving without Owner consent.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 19 min read.

What happened, in plain words

A security researcher was testing a web application that companies use to manage their teams. Think of it like a shared online workspace: one person owns it, a few people help run it, and everyone else just uses it. The owner is the person with the keys to everything, including the power to delete the whole workspace.

The researcher had a low-level helper account (an Admin) and noticed that the website did not offer this helper the option to make someone else an Owner. The option was simply missing from a dropdown menu. That looks safe, but it is not, because the menu lives in your browser, and your browser is under your control. The real question is whether the server, the computer that actually does the work, checks the request when it arrives.

It did not. The researcher changed one word in the request that the browser sends to the server, from admin to owner, and the server happily created an Owner invitation. The researcher accepted it, the new account became an Owner, and then removed the real Owner from the workspace. In under two minutes, a helper had taken over the whole thing and locked out the person who actually owned it.

This is a story about a class of bug called Broken Access Control. The rest of this article walks through it slowly, explaining every term as it appears.

The setup: what kind of product this was

The target was a multi-tenant SaaS application with an organization management system.

Let us unpack that sentence, because it is dense.

  • SaaS stands for Software as a Service. Instead of installing a program on your computer, you use it through a website. Think of webmail: you do not install an email server, you just log in.
  • Multi-tenant means one running copy of the software serves many separate customers at once. Each customer's space is called a tenant. A good comparison is an apartment building: one building, one set of pipes, but many separate flats with their own locks. A bug that lets one tenant reach into another, or lets one person inside a tenant grab more power than they should, is serious.
  • An organization management system is the part of the product where a company manages its people: who belongs, what they are allowed to do, and who can invite others.

The platform defined three roles:

Role Intended powers
Owner Billing, member management, organization deletion
Admin Daily operations and inviting new team members, with restricted permissions
Member Standard user with basic read/write access

A role is simply a label that says what a person is allowed to do. The application checks your role when you click things, the same way a building checks whether your key opens a particular door. The Owner role is the master key: it can pay the bills, manage members, and delete the entire organization. Admin is a strong key but not the master key. Member is an ordinary key.

The feature under test was the Team Invitations panel. This is the screen where an administrator types a new person's email address and picks a role for them. The system then sends that person an email with a link; clicking the link and signing up gives them the chosen role inside the organization.

The question the researcher set out to answer was simple to state and important: when the invitation is created, does the server check whether the person sending it is actually allowed to hand out that particular role? Or does the restriction live only in the dropdown menu in the browser?

That distinction is the heart of the whole article. A dropdown menu is part of the web page, and the web page runs on the visitor's computer. Anything on the visitor's computer can be changed by the visitor. The server is the only place where a decision can be enforced, because the server is the one holding the data.

Step 1: The initial reality check

When testing as an Admin, the researcher navigated to the Team Invitations panel. A dropdown menu offered roles to assign to the invitee: Admin or Member.

The Owner option was completely missing from the UI menu.

UI stands for user interface: the buttons, menus and text you see and click on screen. The dropdown is a UI control. It is drawn by the browser from instructions the server sent, but once it is on your screen, it is just a picture with behaviour attached. You can open your browser's developer tools and change it, or you can skip the page entirely and send the request yourself.

Text
[ What the UI Showed to an Admin ]
Role Options: ⭕ Member ⭕ Admin ❌ Owner (Option completely hidden)

This block is not code. It is a sketch of what the screen looked like: two selectable circles for Member and Admin, and a cross where Owner would have been, because the option was not offered at all.

At first glance, the application looked secure. An Admin could not pick Owner, so an Admin could not create an Owner. That is the reasoning many people stop at. But as security researchers, we always ask one crucial question:

Is the backend API actually checking if I'm allowed to assign the Owner role, or is it just hiding the option in my browser?

Two more terms to explain here.

  • The backend is the part of the system you never see: the programs and databases on the company's servers that store the data and make the real decisions. The frontend is what you see in the browser.
  • An API (Application Programming Interface) is the set of addresses and rules the frontend uses to talk to the backend. A useful comparison is a restaurant. The menu and the waiter are the frontend; the kitchen is the backend; the API is the set of order slips the waiter carries to the kitchen. When you click "Send invitation", your browser writes an order slip and sends it to the kitchen. Nothing stops you from writing your own order slip and handing it in, which is exactly what this article is about.

So the researcher's question was: when the order slip says "Owner", does the kitchen check who sent it, or does it just cook what is written?

Step 2: Intercepting the traffic

To test the server's validation logic, the researcher set up two accounts:

  • Account_A → The primary, legitimate Organization Owner 👑
  • Account_B → An account invited by Account_A as an Admin 🛡️

Why two accounts? Because you need to be the low-privileged person to prove that a low-privileged person can do the damage. If you test with the Owner account, everything works, and you have learned nothing. Account_A is the victim, the real owner. Account_B is the attacker, an ordinary Admin who should not be able to grant Owner.

The researcher logged into Account_B (Admin), typed in a secondary test email address, selected Admin from the role dropdown, and fired up Burp Suite 🎯 to capture the HTTP request before it reached the server.

Burp Suite is a tool used by security testers. One of its features is a proxy: it sits between your browser and the server and lets you read every message going each way, pause it, edit it, and send it on. The comparison is a postal worker who is allowed to open your letters, read them, rewrite them, and then deliver them. Normally your browser talks straight to the server; with a proxy in the middle, you get to see and change the conversation.

Me rapidly testing requests in Burp Suite. From the original on medium.com

Me rapidly testing requests in Burp Suite.

Me rapidly testing requests in Burp Suite. From the original on medium.com

These two screenshots show the researcher working in Burp Suite, sending and adjusting requests quickly. The point of the step is not the clicking itself but what it produces: the exact message the browser sends when an Admin invites someone.

Here was the clean JSON payload intercepted on its way to the backend API:

JSON is a way of writing data as text, using curly braces, quotes and colons, so that both the browser and the server can read it. It looks like a form filled in with labels and values. A payload here just means the body of the message, the part carrying the actual data.

HTTP
POST /api/v1/organization/invitations HTTP/1.1
Host: target-app.com
Authorization: Bearer <ADMIN_JWT_TOKEN>
Content-Type: application/json

This is an HTTP request, the standard format a browser uses to ask a server to do something. Line by line:

  • POST /api/v1/organization/invitations HTTP/1.1 is the request line. POST is the method, meaning "I am sending data and asking you to create something". The path /api/v1/organization/invitations is the address of the feature on the server: the invitations part of the organization API, version 1. HTTP/1.1 is the version of the protocol being spoken.
  • Host: target-app.com says which website the request is for. One server can host many sites, so the request names the one it wants.
  • Authorization: Bearer <ADMIN_JWT_TOKEN> is the proof of who is asking. A token is a long string of characters that the server gave you when you logged in, and that you show on every later request instead of typing your password again. The comparison is a wristband at an event: you show your ticket once at the door, get a wristband, and after that the staff just look at the wristband. Bearer means "the holder of this string is the user". JWT stands for JSON Web Token, a common format for such tokens. The value is written as <ADMIN_JWT_TOKEN> because it is a secret and is not shown; anyone who has it can act as that Admin.
  • Content-Type: application/json tells the server how to read the body that follows: as JSON.
JSON
{
  "email": "[redacted]",
  "role": "admin"
}

This is the body, the actual order slip. Line by line:

  • The outer { and } wrap the whole object, which is a set of label-and-value pairs.
  • "email": "[redacted]" says who is being invited. This is a test address the researcher controls, so the invitation email arrives in the researcher's own inbox.
  • "role": "admin" says what role the invited person should get. Here it is admin, the ordinary choice the dropdown offered.

The important observation is that the role is just a word in a text message. The server receives it as a string of characters chosen by whoever sent the request. Nothing in the message itself proves the sender was allowed to choose that word. Whether the server checks is the entire question.

Step 3: Testing the authorization boundary

Now came the critical test. The researcher tampered with the JSON body, replacing "admin" with "owner":

JSON
{
  "email": "[redacted]",
  "role": "owner"
}

Line by line, this is the same order slip as before, with one word changed:

  • "email": "[redacted]" is unchanged: the same test address receives the invitation.
  • "role": "owner" is the tampered part. The dropdown never offered this, but the dropdown is not the server. The researcher is writing the order slip by hand, so the menu is irrelevant.

This is the moment the whole article turns on. The researcher is not exploiting a clever trick in the browser. The researcher is simply asking the server for something the browser would not have asked for, and seeing whether the server says no.

I forwarded the modified request, expecting the server to throw a 403 Forbidden error saying "Admins are not allowed to invite Owners."

A 403 Forbidden is an HTTP status code meaning "I understood your request, but you are not allowed to do this". Status codes are short numbers servers use to report the outcome: 200-ish numbers generally mean success, 400-ish mean the request was wrong or not permitted, 500-ish mean the server broke. The researcher expected a 403 because that is what a correctly built server should return when an Admin tries to grant Owner.

Instead, the server responded with a crisp 201 Created! 🚨

201 Created is a success code meaning "I made the thing you asked for". The server did not refuse. It created the invitation.

The server actually accepted role=owner…. From the original on medium.com

The server actually accepted role=owner….

This screenshot shows the server's answer to the tampered request, the moment the researcher saw that the elevated role had been accepted.

HTTP
HTTP/1.1 201 Created
Content-Type: application/json

This is the start of the server's reply. Line by line:

  • HTTP/1.1 201 Created is the status line: the protocol version, then the numeric result, then a short human-readable label. 201 means a new resource was created.
  • Content-Type: application/json says the reply body is JSON, so the researcher knows how to read what follows.
JSON
{
  "status": "success",
  "message": "Invitation sent successfully",
  "data": {
    "role": "owner"
  }
}

This is the reply body, line by line:

  • The outer { and } wrap the reply object.
  • "status": "success" reports that the operation worked.
  • "message": "Invitation sent successfully" is a human-readable note for display.
  • "data": { ... } is a nested object holding details about what was created.
  • "role": "owner" inside data is the crucial line: the server is echoing back the role it actually stored. It did not quietly downgrade the request to Admin. It created an Owner invitation.

The backend trusted the parameter passed in the API body without verifying if Account_B (an Admin) possessed the authority to grant Owner status!

A parameter is simply one of the labelled values in a request, like role or email. The bug is that the server treated the role parameter as trustworthy. It never checked whether that logged-in person was allowed to hand out that particular role. Being allowed to use a door is not the same as being allowed to unlock every door in the building.

Step 4: The escalation and full takeover

The vulnerability was already proven, but demonstrating full impact is what makes a bug report critical. Here is how the complete takeover path was executed:

  1. Accepting the invite: The researcher opened the invitation email sent to [redacted] and completed registration. 📩
  2. Checking privileges: The newly registered account immediately held full Owner status in the organization! 👑
  3. The final lockout: Logged in as the rogue Owner, the researcher went to Organization Settings ➔ Members, clicked on Account_A (the real original Owner), and clicked Remove. ❌

Why go through all three steps? Because a bug report is much stronger when it shows the real-world consequence, not just an odd server response. A 201 Created could be dismissed as harmless if the invitation never actually granted power. By accepting the invitation and logging in, the researcher proved the new account really was an Owner. By removing the original Owner, the researcher proved the impact was not theoretical: the legitimate owner lost access to their own organization.

From Admin to Owner in less than 2 minutes!. From the original on medium.com

From Admin to Owner in less than 2 minutes!.

This screenshot shows the result of the escalation: the researcher's account holding Owner status, and the removal of the original Owner from the member list.

Text
🛡️ Admin User (Account B)
       │
       ▼ (Intercept & Tamper: "role": "owner")
📩 Unauthorized Owner Invitation Sent
       │
       ▼ (Accept Invitation Link)
👑 Escalated to Full Owner Privileges
       │
       ▼ (Revoke Access)
❌ Original Owner Removed from Tenant
       │
       ▼
💥 Complete Organization Takeover Achieved!

This diagram is a summary of the chain, read from top to bottom. Each arrow is one action, and the label on the arrow says what happened at that point:

  • The Admin account starts the chain.
  • The invitation request is intercepted and its role value is changed to owner.
  • An invitation with Owner rights is sent, even though the Admin was never allowed to send one.
  • The invitation link is accepted, and the new account becomes an Owner.
  • The new Owner removes the original Owner's access.
  • The result is a complete takeover of the tenant.

In less than two minutes, a lower-privileged Admin seized the entire tenant and locked out the real owner permanently.

Why it worked

The invitation endpoint accepted the role value from the request body and created the invitation with it, without checking whether the authenticated caller was permitted to grant that role. The only restriction on assigning Owner was the absence of the option in the Admin's dropdown, a client-side UI control. Because the server trusted the client-supplied role, the hidden option could be supplied directly in the JSON body. Hiding the Owner option from Admins did not stop the attack.

Client-side means it happens in the browser, on the visitor's machine. Server-side means it happens on the company's server. A rule enforced only on the client side is a suggestion, not a rule, because the visitor controls the client. The comparison is a form that says "please do not write here" in pencil: anyone can rub it out. A rule enforced on the server is a locked door.

Impact and severity

  • Severity: Critical (CVSS 9.1) 🚨
  • Impact type: Broken Access Control / Privilege Escalation
  • Confidentiality: Total exposure of sensitive company records, customer details, and API tokens.
  • Integrity: Complete administrative authority to alter or wipe out organizational resources.
  • Availability: Irreversible lockout of legitimate administrators.

A few terms here:

  • Severity is a rough label for how bad a bug is, from low to critical. CVSS is a standard scoring system that turns the details of a bug into a number, where higher is worse; 9.1 is in the critical range. The score is the one given in the report.
  • Broken Access Control means the system failed to enforce who is allowed to do what. Privilege escalation means a user with less power found a way to get more power. Here the two are the same event seen from two angles: the missing check is the broken control, and the Admin becoming an Owner is the escalation.
  • Confidentiality means keeping data secret. If an attacker becomes Owner, they can read everything the organization holds, including the tokens that other systems use to talk to each other.
  • Integrity means data staying correct and unaltered. An Owner can change or delete the organization's resources.
  • Availability means the legitimate people can still get in and use the service. Removing the real Owner takes that away from them.

From there, the attacker can mint an Owner account, take over the tenant, and remove the real Owner, locking them out permanently.

The fix

The report states that the issue was patched on the backend. Role assignment must never rely on the UI hiding an option.

In plain words: when the order slip arrives at the kitchen, the kitchen should look at who sent it and refuse any dish that person is not entitled to order, no matter what is written on the slip. The menu is a convenience for honest users, not a security control.

Other places to look for the same mistake

Once you understand the pattern, you can look for it elsewhere. These are the variants worth testing, each described in plain terms:

  1. Other role fields in the same API. Change role to any value the UI does not offer (for example a super-admin or billing role) on invitation, member-update and role-change endpoints. A positive result is a 2xx response that echoes the elevated role or a subsequent session showing the higher privileges. In other words: try the same trick on every screen that assigns a role, not just invitations.
  2. Mass assignment on registration or profile update. Add role or permission fields to JSON bodies sent by a low-privileged user. A positive result is the server accepting and persisting the field. The idea is that some servers take every field in the body and save it without checking whether the user was supposed to set that field at all.
  3. Invitation acceptance flow. Tamper with the role on the accept-invitation request rather than the create-invitation request. A positive result is the accepted account landing with a role higher than the one originally assigned. Here the check might exist when the invitation is created but be missing when it is accepted.
  4. Member role change by a lower role. As an Admin, send a role-change request for an existing member to Owner. A positive result is the member's privileges changing to Owner. This tests whether the same missing check exists on the screen that edits an existing member rather than inviting a new one.
  5. Removal and ownership transfer endpoints. As an Admin, attempt to remove the Owner or transfer ownership. A positive result is the Owner being removed or the ownership moving without Owner consent. These are the destructive actions at the end of the chain, and they deserve their own check.

What to take away

  • Hiding a button or a menu option is not security. It only stops honest users from clicking it.
  • Every decision about who may do what must be made on the server, using the identity proven by the token, not the values supplied in the request body.
  • When testing, use two accounts with different roles. The low-privileged one is the attacker; the high-privileged one is the victim.
  • A proxy such as Burp Suite lets you see and edit the exact message your browser sends, which is how you find out what the server really checks.
  • Prove impact, not just a strange response. Accept the invitation, log in, and show what the new account can actually do.

Glossary

  • API: the set of addresses and rules a frontend uses to talk to a backend, like order slips carried to a kitchen.
  • Admin: a role with day-to-day management powers, including inviting members, but not full ownership.
  • Authorization: the check of whether a logged-in user is allowed to perform a particular action.
  • Backend: the programs and databases on the company's servers that store data and make the real decisions.
  • Bearer token: a credential sent with a request where possession of the string is treated as proof of identity.
  • Broken Access Control (BAC): a bug where the system fails to enforce who is allowed to do what.
  • Burp Suite: a security testing tool that can sit between browser and server to capture, inspect and modify requests.
  • Client-side: happening in the browser, on the visitor's own machine, and therefore under the visitor's control.
  • Confidentiality: keeping data secret from people who should not see it.
  • Content-Type: a header that tells the receiver how to interpret the body, for example as JSON.
  • CVSS: a standard scoring system that turns a vulnerability's details into a number, higher being worse.
  • Frontend: the part of the application you see and interact with in the browser.
  • HTTP: the standard protocol browsers and servers use to exchange requests and responses.
  • HTTP status code: a short number in a response reporting the outcome, such as 201 for created or 403 for forbidden.
  • Integrity: keeping data correct and unaltered by people who should not change it.
  • JSON: a text format for structured data using braces, quotes and colons, readable by both browser and server.
  • JWT (JSON Web Token): a common format for a token that proves who you are on later requests.
  • Member: the standard role with basic read and write access.
  • Multi-tenant: one running copy of software serving many separate customers, each with its own isolated space.
  • Owner: the top role, able to handle billing, manage members and delete the organization.
  • Parameter: one labelled value in a request, such as role or email.
  • Payload: the body of a request, the part carrying the actual data.
  • POST: an HTTP method meaning "I am sending data and asking you to create something".
  • Privilege escalation: a user with limited power finding a way to gain more power.
  • Proxy: an intermediary that sits between two parties and can read, and sometimes change, their messages.
  • Role: a label defining what a user is allowed to do.
  • SaaS (Software as a Service): software used through a website rather than installed on your own computer.
  • Server-side: happening on the company's server, where rules can actually be enforced.
  • Severity: a rough label for how bad a vulnerability is, from low to critical.
  • Tenant: one customer's separate space inside a shared multi-tenant application.
  • Token: a string issued at login and shown on later requests to prove identity without resending a password.
  • UI (user interface): the buttons, menus and text you see and click on screen.
  • Validation: checking that data is acceptable before acting on it; here, checking that the caller may grant the requested role.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.