Skip to content
Access control Write-up Intermediate

How was i able to find privilege escalation.

The central admin application and the client admin panel shared the same authentication cookies, and 11 API endpoints lacked proper access control. A client admin could replay central admin API calls and access sensitive data about other clients, including IP addresses, domains, resource usage, and user details.

Akshar Tank Follow

Published on medium.com

{{media:0}}

Akshar Tank, 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. 3 min read.

Context

The target was a set of applications, found on Bugcrowd through the platform's joinable program list, that provided email services to clients. The researcher describes the product as a three-tier stack:

Tier Role What it does
Tier one Central admin Controls all client data and infrastructure: how much resource is allocated to a client, whether services such as SFTP are enabled, and user management for the client admin
Tier two Client admin panel Lets a client administrator manage users: creating user groups, adding and removing members, resetting passwords and setting user access policies
Tier three Email application The end-user email service

The bug class is broken authorisation between tiers: a client-level administrator (tier two) reaching tier one functionality.

Setup

The researcher joined the program and then left it untouched for two months before starting. The only tooling mentioned is Burp, used as an intercepting proxy while browsing the application. Two browsers were used, one logged in to the tier two application and one to the tier one application, so that a captured tier one session and a live tier two session could be compared and replayed.

No account provisioning details, versions or specific roles beyond "client admin" and the central admin are given.

Finding it

While using the application with traffic proxied through Burp, the researcher compared how the tiers authenticated. The cookies of the tier one and tier two applications were alike, but tier three used a JWT token. That similarity suggested the two admin-facing applications might share a session model, and raised the question of whether the admin of one client could reach the main admin panel.

Image for post
Image for post From the original on medium.com

The diagram shows the flow the researcher expected between the two applications.

Exploitation

Step 1: capture the tier one API surface

With Burp running, the tier one application was opened in one browser and the tier two application in another. The researcher then traversed the whole tier one application and captured all of its API calls, roughly 100 of them (the researcher notes some may have been missed).

Step 2: replay tier one calls in the tier two session

The captured calls were replayed using the session of the tier two client admin. Most were rejected with the message:

Text
User is authenticated but has no rights to perform this action.

That response is itself informative: the session was accepted as valid, and only the authorisation check refused the action.

Step 3: collect the endpoints that answered

After some time, 11 endpoints were found where access control was not implemented correctly and which returned sensitive data to the tier two session. This confirmed the researcher's initial suspicion that APIs from the tier one and tier two applications were being processed by one server only.

The data returned included:

  • how many clients exist
  • each client's IP and domain name
  • CPU, RAM and HDD usage per client
  • which licences other clients held
  • how many user profiles other clients had created, together with their ACLs
  • further details of the same kind

Root cause

The researcher's suspicion that tier one and tier two APIs were processed by one server was confirmed, and 11 endpoints lacked correct access control. Most replayed calls returned the authorisation error; 11 endpoints returned sensitive data instead. The report does not describe the authorisation check itself.

Impact

A client administrator, holding only tier two access, could read data belonging to other clients and to the platform's own infrastructure view: client counts, IPs, domains, resource usage, licences and user profiles with their ACLs. The report describes this as leaking sensitive data; it does not state that any write or modification action succeeded, so the demonstrated impact is disclosure across tenant boundaries.

Fix

Variants to test

  1. Capture the full API surface of the higher-privileged panel and replay every call with the lower-privileged session. A positive result is any response other than the authorisation error, especially one containing data about other tenants.
  2. Compare cookie and token formats across tiers. Identical or similar session artefacts suggest a shared backend, which makes cross-tier replay worth trying.

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

What happened, in plain words

A security researcher found a way for a normal client administrator to see information that only the platform's own central administrators should see. The product was a set of email applications offered to businesses. The researcher logged in as a low-level administrator, captured the requests that the high-level admin panel makes, and then sent those same requests using the low-level session. Most were refused, but 11 of them answered and returned data about other clients: how many clients exist, their IP addresses and domain names, their CPU, RAM and disk usage, their licences, and their user profiles with access rules.

To follow this, you only need to understand a few ideas. A web application is a program you use through your browser, like an online shop or a webmail. When you click something, your browser sends a request to a server (a computer somewhere that holds the data and does the work), and the server sends back a response, usually containing data. An API (Application Programming Interface) is the set of addresses a web application uses behind the scenes to fetch and change data. Think of a restaurant: the menu is the visible application, and the kitchen door where waiters hand in orders is the API. You normally never see the kitchen door, but your browser uses it constantly.

A cookie is a small piece of text that a server gives your browser after you log in, and your browser sends it back with every later request so the server can recognise you. It is like a wristband at an event: you show it once at the entrance, and afterwards staff glance at your wrist instead of asking for your ID again. A token (here a JWT, JSON Web Token) is a similar idea in a different format: a signed string that proves who you are. A session is simply the state of being logged in, tied to that cookie or token.

Authorisation is the decision about what a logged-in person is allowed to do. Authentication is only the question of who you are. A privilege escalation is when someone gets access to more than their role should allow. Here the specific type is broken authorisation between tiers, also described as IDOR (Insecure Direct Object Reference) in the platform's classification: the server accepts a request from a lower role because it checks that you are logged in but not that you hold the right role.

The product and its three tiers

The researcher found the program on Bugcrowd, a platform where companies publish programs and researchers report bugs. This one was in the platform's joinable program list, meaning anyone on the platform could join it. The product was a set of applications providing email services to clients. The researcher describes it as three tiers:

Tier Role What it does
Tier one Central admin Controls all client data and infrastructure: how much resource is allocated to a client, whether services such as SFTP are enabled, and user management for the client admin
Tier two Client admin panel Lets a client administrator manage users: creating user groups, adding and removing members, resetting passwords and setting user access policies
Tier three Email application The end-user email service

In everyday terms: tier one is the building manager who controls the whole building, tier two is the office manager of one company renting a floor, and tier three is the employees' own mailroom. The office manager should be able to manage their own staff, but should never be able to walk into the building manager's control room and read the files of every other company in the building.

SFTP (Secure File Transfer Protocol) is a way of sending files securely between computers. CPU, RAM and HDD are a computer's processor, memory and hard disk: the resources a hosting platform allocates to each client. An ACL (Access Control List) is a list saying which user is allowed to do what.

Setting up

The researcher joined the program and then left it untouched for two months before starting. The only tool mentioned is Burp, short for Burp Suite, an intercepting proxy. A proxy sits between your browser and the server and lets you read, pause and edit every request and response. Think of it as a post office clerk who opens every letter you send, shows it to you, and lets you rewrite it before posting. Two browsers were used: one logged in to the tier two application and one logged in to the tier one application. That way a captured tier one session and a live tier two session could be compared and replayed side by side.

The report gives no account provisioning details, no versions and no roles beyond client admin and central admin.

Finding it

While using the application with traffic going through Burp, the researcher compared how the tiers authenticated. The cookies of the tier one and tier two applications were alike, but tier three used a JWT token. That similarity suggested the two admin-facing applications might share a session model, and raised the question of whether the admin of one client could reach the main admin panel.

Image for post
Image for post From the original on medium.com

The diagram shows the flow the researcher expected between the two applications.

Why does this matter? If two applications issue the same kind of wristband, there is a good chance the same doorman checks both doors. If the doorman only checks that the wristband is genuine, and not which colour it is, a visitor's wristband may open the staff door. The researcher's question was exactly that: can a client admin's session be used against the central admin's API?

Exploitation

Step 1: capture the tier one API surface

With Burp running, the tier one application was opened in one browser and the tier two application in another. The researcher then traversed the whole tier one application and captured all of its API calls, roughly 100 of them (the researcher notes some may have been missed).

Traversing means clicking through every page and feature while the proxy records the requests. The goal is a list of every kitchen door the high-privilege panel uses, so each one can later be tried from the low-privilege side. If you only test the pages you can see as a client admin, you never learn the addresses that only the central admin's browser calls.

Step 2: replay tier one calls in the tier two session

The captured calls were replayed using the session of the tier two client admin. Replaying means sending the same request again, but with the low-privilege cookie or token attached instead of the high-privilege one. Most were rejected with the message:

Text
User is authenticated but has no rights to perform this action.

Read that message carefully. It says two things. First, the session was accepted as valid: the server knew who was calling. Second, only the authorisation check refused the action. In wristband terms, the doorman checked the wristband, confirmed it was real, and then said you are not allowed through this door. That is useful information, because it tells you the session itself is not the obstacle; the role check is. It also tells you the server is reachable from the low-privilege side at all.

Step 3: collect the endpoints that answered

After some time, 11 endpoints were found where access control was not implemented correctly and which returned sensitive data to the tier two session. An endpoint is one specific address in the API, like one particular order window in the kitchen. This confirmed the researcher's initial suspicion that APIs from the tier one and tier two applications were being processed by one server only.

The data returned included:

  • how many clients exist
  • each client's IP and domain name
  • CPU, RAM and HDD usage per client
  • which licences other clients held
  • how many user profiles other clients had created, together with their ACLs
  • further details of the same kind

An IP address is the numeric address of a computer on a network. A domain name is the readable name of a website, like example.com. A licence here is a paid entitlement a client holds for the service. All of this is information about other tenants, meaning other companies using the same platform, which the client admin should never see.

Root cause

The researcher's suspicion that tier one and tier two APIs were processed by one server was confirmed, and 11 endpoints lacked correct access control. Most replayed calls returned the authorisation error; 11 endpoints returned sensitive data instead. The report does not describe the authorisation check itself.

In plain words: the building has one reception desk for both the office manager and the building manager. Reception is good at checking that your badge is real, but on 11 doors it forgot to check which colour your badge is. A tenant is one client organisation on a shared platform; a tenant check makes sure your request only touches your own organisation's data.

Impact

A client administrator, holding only tier two access, could read data belonging to other clients and to the platform's own infrastructure view: client counts, IPs, domains, resource usage, licences and user profiles with their ACLs. The report describes this as leaking sensitive data; it does not state that any write or modification action succeeded, so the demonstrated impact is disclosure across tenant boundaries.

Disclosure means reading data you should not see. It is worth separating that from changing data: the report shows reading only. Even so, knowing every client's address, domain, resource usage and user list is valuable to an attacker, because it maps out the platform and its customers.

Fix

Server-side means the check happens on the server, not in the browser: hiding a button in the page does nothing if the API still answers the request.

Variants to test

  1. Capture the full API surface of the higher-privileged panel and replay every call with the lower-privileged session. A positive result is any response other than the authorisation error, especially one containing data about other tenants.
  2. Compare cookie and token formats across tiers. Identical or similar session artefacts suggest a shared backend, which makes cross-tier replay worth trying.

An HTTP method is the verb of a request, such as GET for reading or POST for submitting. An object identifier is the number or code naming a specific record, such as a user ID. If the server looks up that record without checking who owns it, changing the number can return someone else's data.

Glossary

  • ACL (Access Control List): a list saying which user is allowed to do what.
  • API (Application Programming Interface): the set of addresses a web application uses behind the scenes to fetch and change data.
  • Authentication: proving who you are, usually by logging in.
  • Authorisation: deciding what a logged-in person is allowed to do.
  • Broken authorisation: a flaw where the server does not correctly enforce what a role may do.
  • Bugcrowd: a platform where companies publish bug bounty programs and researchers report bugs.
  • Burp (Burp Suite): a tool that sits between your browser and the server and lets you read, pause and edit requests and responses.
  • Cookie: a small piece of text a server gives your browser after login, sent back with later requests so the server recognises you.
  • CPU: a computer's processor, one of the resources allocated to a client.
  • Domain name: the readable name of a website, like example.com.
  • Endpoint: one specific address in an API.
  • HDD: a computer's hard disk, one of the resources allocated to a client.
  • HTTP method: the verb of a request, such as GET for reading or POST for submitting.
  • IDOR (Insecure Direct Object Reference): a flaw where a request names a record directly and the server returns it without checking ownership.
  • Intercepting proxy: a tool placed between browser and server that records and can modify traffic.
  • IP address: the numeric address of a computer on a network.
  • JWT (JSON Web Token): a signed string used to prove who you are, an alternative to a cookie.
  • Licence: a paid entitlement a client holds for the service.
  • Object identifier: the number or code naming a specific record, such as a user ID.
  • Privilege escalation: getting access to more than your role should allow.
  • RAM: a computer's memory, one of the resources allocated to a client.
  • Replay: sending a captured request again, possibly with a different session attached.
  • Request: a message your browser sends to a server asking for something.
  • Response: the message the server sends back, usually containing data.
  • Server: the computer that holds the data and does the work behind a web application.
  • Server-side: happening on the server, not in the browser.
  • Session: the state of being logged in, tied to a cookie or token.
  • SFTP (Secure File Transfer Protocol): a way of sending files securely between computers.
  • Tenant: one client organisation on a shared platform.
  • Token: a string that proves who you are, sent with requests.
  • Traversing: clicking through every page and feature of an application, here while a proxy records the requests.
  • Web application: a program you use through your browser.

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.