Skip to content
IDOR Disclosed report Beginner

Remove Every User, Admin, And Owner Out Of Their Teams on developers.mtn.com via IDOR + Information Disclosure

The team member removal endpoint did not verify that the requesting user belonged to the target team, allowing any authenticated user to remove arbitrary users from any team by changing the team and user identifiers. An attacker could remove admins and owners from their teams and brute-force all identifiers to remove every user from every team.

wallotry Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 54 days
  • Fixed in 10 months
  • Disclosed after 11 months

Hello world,

This vulnerability is too involved with regular users, in order for us to prevent any damage, we need 3 different user accounts we own. This gives us specific "user_id" and "team_id" to work with. There's an Information Disclosure as a side effect of this vulnerability. User and team names are disclosed in the response from the server.

Steps To Reproduce(POC)

==First, let's paint a mental picture of this vulnerability and the required conditions using accounts with imaginary user_id & team_id. The vulnerability and conditions are realistic, the only imaginary thing is the user_id and team_id.==

  1. Create 3 accounts on developers.mtn.com(Account A, B, and C)

==My imaginary accounts:==

  • A: First Account(imaginary user_id=1111 & team_id=0001)
  • B: Second Account(imaginary user_id=1112 & team_id=0002)
  • C: Third Account(imaginary user_id=1113 & team_id=0003)
  1. Login to A, Invite B to your Team A
  2. Login to B, Invite C to your team B
  3. Open Burp Suite
  4. Login to A, Remove B(Please Intercept This Request)
  5. Send the Intercepted request to the repeater tab
  6. Modify the request(Our Goal is to remove C from Team B, which we don't have access or permissions to.)
  7. Replace the team_id with Team B's team_id. Replace the user_id with C's user_id.
  8. Send the Request. (This Request will disclose C's username And Team B's name. Making this an information disclosure. PII)
IDOR___Disclosure.mp4 From the original on HackerOne
  1. C will be removed from B's Team B.
  2. C will receive an email from MTN telling him/her that he/she has been removed from Team B.
removed_email.png
removed_email.png From the original on HackerOne

Steps To Reproduce(Removing Every User)

==This can be done with a custom script/code without the need for Burp Suite==

  1. Intercept the request for removing a user, and send it to the Burp Suite intercept tab.
  2. Config your settings to brute-force through every team_id and user_id. This part is not that hard because every user_id and team_id has only 4 digits.
  3. Run the intruder request. When there's a successful user_id and team_id match, the user whose ID has been matched, will be removed.
  4. If my calculations are correct, it should take 12 Hours to remove every user from every group they're in, the maximum being 20 Hours. The faster the internet speed, the faster the computer, the shorter the time it'll take to brute-force through every user_id and team_id.

Exploitability

  • Anyone with an account on developers.mtn.com can exploit this vulnerability
  • All you need is a user_id and a team_id to remove a user from his/her team.(Their privileges don't matter, even the owner is vulnerable)

Remediation

  • Ensure proper session management and object-level user access control checks.
  • Apply access control mechanisms such as permissions to certain action.
  • Validation of access to a team_id.
  • You should always check if a user submitting the request isn't tampering and isn't submitting any ID's that do not belong to his/her account.

Reference

#1448475

Impact

A low level user can remove his Admin and Owner from the team. Every user will be removed from every team they are in, including owners and admins.

The original report as published on HackerOne, by wallotry. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Context

The target is developers.mtn.com, the MTN developer portal. The feature in scope is team membership: an account can invite other accounts into a team, and a team member can be removed from that team. Each account has a user_id and each team has a team_id, and the removal action is driven by those two identifiers.

The report describes an insecure direct object reference in that removal action. By changing the team_id and user_id in the removal request, an authenticated user can remove an account from a team they have no relationship with and no permission over. The same response also leaks the removed user's name and the team's name, which the researcher treats as an information disclosure and PII.

Setup

The vulnerability involves regular users, so the researcher used three accounts they controlled, which gives three known user_id and team_id pairs to work with. The accounts are created on developers.mtn.com and labelled A, B and C. In the walkthrough the identifiers are imaginary, and the researcher says so explicitly: the vulnerability and the conditions are realistic, only the user_id and team_id values are made up.

Account Role in the walkthrough Imaginary user_id Imaginary team_id
A First account, owns Team A 1111 0001
B Second account, invited into Team A, owns Team B 1112 0002
C Third account, invited into Team B 1113 0003

The tooling is Burp Suite, used to intercept the removal request and replay it from the Repeater tab. The second part of the report uses Burp Intruder instead, to brute-force identifiers.

Finding it

The removal request carries both the team and the user it acts on. The request carries both the team and the user it acts on, and replaying it with another team's and user's identifiers succeeds. The researcher's test is built around that: account A legitimately removes B from Team A, and the same request is then replayed with Team B's team_id and C's user_id, even though A has no access to Team B and no permission over C.

A second observation is that the server's response to a successful removal includes the removed user's username and the team's name. That turns a successful guess into a disclosure of both values, which the researcher classifies as PII.

Exploitation

Step 1: create the accounts

Create three accounts on developers.mtn.com, referred to as A, B and C. They provide the three user_id and team_id pairs used throughout.

Step 2: invite B into Team A

Log in to A and invite B to Team A.

Step 3: invite C into Team B

Log in to B and invite C to Team B. At this point C is a member of a team owned by B, and A has no relationship with either of them.

Step 4: start intercepting

Open Burp Suite with the proxy intercepting requests.

Step 5: trigger a legitimate removal

Log in to A and remove B from Team A, intercepting the request rather than letting it through.

Step 6: send it to Repeater

Send the intercepted request to the Repeater tab so it can be edited and resent.

Step 7: change the target

The goal is to remove C from Team B, a team the attacker does not have access to or permissions over.

Step 8: replace both identifiers

In the intercepted request, replace the team_id with Team B's team_id and the user_id with C's user_id. In the walkthrough those are 0002 and 1113 respectively.

Step 9: send the request

The request succeeds. The response discloses C's username and Team B's name, which is the information disclosure side of the bug.

IDOR___Disclosure.mp4 From the original on HackerOne

Step 10: the removal takes effect

C is removed from Team B.

Step 11: the victim is notified

C receives an email from MTN telling them they have been removed from Team B.

removed_email.png
removed_email.png From the original on HackerOne

Removing every user

The researcher notes this can be done with a custom script or code, without Burp Suite, and describes the Intruder route:

  1. Intercept the request for removing a user and send it to the Burp Suite intercept tab.
  2. Configure the settings to brute-force through every team_id and user_id. This is not hard because every user_id and team_id has only four digits.
  3. Run the Intruder request. When a user_id and team_id match, the user whose ID has been matched is removed.
  4. The researcher estimates 12 hours to remove every user from every group they are in, with a maximum of 20 hours. Faster internet and a faster computer shorten the time needed to brute-force every user_id and team_id.

Root cause

The removal action acts on the team_id and user_id supplied in the request, and the researcher's remediation list points at missing access control checks. The researcher's remediation list points at the missing controls: object-level user access control checks, permissions on the action, validation of access to a team_id, and a check that the submitted IDs belong to the caller's account. The report does not show the server-side code, so the exact place where the check is missing is not stated.

Impact

Anyone with an account on developers.mtn.com can exploit this. All that is needed is a user_id and a team_id to remove a user from their team, and the target's privileges do not matter: even the owner is vulnerable. A low-level user can remove their admin and owner from the team, and in the brute-force scenario every user can be removed from every team they are in, including owners and admins. The response also discloses the removed user's username and the team's name.

Fix

The report recommends proper session management and object-level user access control checks, applying access control mechanisms such as permissions to the action, validating access to a team_id, and checking that a user submitting the request is not tampering and is not submitting IDs that do not belong to their account. It does not say what was actually changed.

Variants to test

  • On other portals with team or organisation membership, replay a legitimate removal or leave request with another team's identifier and another user's identifier. A positive result is a success response naming the other user and team, and the victim losing membership.
  • Look for other membership actions driven by client-supplied IDs, such as role changes or invitations, and swap the identifiers the same way. A positive result is a change applied to an object the caller does not control.
  • Where identifiers are short and sequential, as with the four-digit IDs here, test whether enumeration of the pair is practical. A positive result is a reliable success response for pairs the caller has no relationship with.
  • Check whether responses to these actions echo names or other account details. A positive result is a response that discloses data about an object the caller should not be able to see.

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

MTN runs a website for developers at developers.mtn.com. On that site, people can create an account and form teams, much like a group chat or a shared workspace: one person creates the team, invites others, and members can be removed again.

The researcher found that the "remove this person from this team" action trusted whatever numbers the browser sent it. Each account has a number called a user_id, and each team has a number called a team_id. When you remove someone, your browser sends a request saying "remove user X from team Y". The server did what it was told without checking whether you actually belong to team Y or have any right to manage user X.

So anyone with an ordinary account could change those two numbers and remove a complete stranger from a team they had nothing to do with. The reply from the server even told the attacker the removed person's username and the team's name, which the researcher treats as leaked personal information (PII). Because the numbers are only four digits long, they can be guessed by trying every combination, which means every user could be removed from every team, including the team owners and admins.

Background you need first

A few ideas come up again and again in this report. Here they are from zero.

A web request. When you click a button on a website, your browser sends a small message to the server, for example "please remove this member". The server replies with another message, often containing data. Everything you see in a browser is the result of these request and reply pairs.

An API. Think of an API as the serving hatch of a restaurant. You do not walk into the kitchen; you pass an order through the hatch and get a plate back. Websites use APIs so the browser can ask the server for data or ask it to do something, without the browser needing to know how the kitchen works.

Identifiers (user_id, team_id). A database needs a way to tell two users apart, so each one gets a unique number. That is the user_id. Teams get the same treatment with a team_id. These numbers are not secret; they travel in requests all the time. The security question is not whether they are secret, but whether the server checks that the person sending them is allowed to use them.

A session. After you log in, the server needs to recognise you on every following request. It gives your browser a small piece of data, often called a session cookie or token, which your browser sends back with each request. Think of it as a wristband at an event: it proves you paid to get in, but it does not by itself say which rooms you may enter.

IDOR (Insecure Direct Object Reference). This is the vulnerability class here. It means the server takes an identifier straight from the request ("object reference") and acts on it without checking that the caller is allowed to touch that object. The everyday comparison: a cloakroom where you hand in ticket number 42 and get coat 42, even though coat 42 belongs to someone else. The ticket is real, the coat is real, the only thing missing is the check that ticket 42 is yours.

Information disclosure. When a response reveals data the caller should not be able to see, such as a name, that is information disclosure. Here it happens as a side effect: the removal reply names the user and the team.

PII (personally identifiable information). Data that can identify a real person, such as a username tied to an account. The researcher classifies the leaked username and team name as PII.

Burp Suite, Proxy, Repeater, Intruder. Burp Suite is a tool that sits between your browser and the website. The Proxy lets you pause a request before it leaves, look at it, and change it. Repeater lets you take one captured request, edit it, and send it again and again by hand. Intruder does the same but automatically, trying many values in the place you mark. The researcher uses all three.

Brute force. Trying every possible value until one works. If a number has four digits, there are only 10,000 possibilities (0000 to 9999), which a computer can work through quickly.

Setting up the test

The vulnerability involves ordinary users, so the researcher needed accounts they controlled. Three accounts give three known user_id and team_id pairs to work with. All three are created on developers.mtn.com and labelled A, B and C.

In the walkthrough the numbers are imaginary, and the researcher says so explicitly: the vulnerability and the conditions are realistic, only the user_id and team_id values are made up.

Account Role in the walkthrough Imaginary user_id Imaginary team_id
A First account, owns Team A 1111 0001
B Second account, invited into Team A, owns Team B 1112 0002
C Third account, invited into Team B 1113 0003

The tooling is Burp Suite, used to intercept the removal request and replay it from the Repeater tab. The second part of the report uses Burp Intruder instead, to brute-force identifiers.

How the bug was found

The removal request carries both the team and the user it acts on. The request carries both the team and the user it acts on, and replaying it with another team's and user's identifiers succeeds. The researcher's test is built around that: account A legitimately removes B from Team A, and the same request is then replayed with Team B's team_id and C's user_id, even though A has no access to Team B and no permission over C.

A second observation is that the server's response to a successful removal includes the removed user's username and the team's name. That turns a successful guess into a disclosure of both values, which the researcher classifies as PII.

Step by step

Step 1: create the accounts

Create three accounts on developers.mtn.com, referred to as A, B and C. They provide the three user_id and team_id pairs used throughout. You need your own accounts because you must be able to log in as each one and watch what happens to it.

Step 2: invite B into Team A

Log in to A and invite B to Team A. This gives A a legitimate reason to remove B later, which is the request that will be captured and abused.

Step 3: invite C into Team B

Log in to B and invite C to Team B. At this point C is a member of a team owned by B, and A has no relationship with either of them. That separation is the whole point: A should have no power over C or Team B.

Step 4: start intercepting

Open Burp Suite with the proxy intercepting requests. From now on, requests from the browser pause in Burp before reaching the server, so they can be read and edited.

Step 5: trigger a legitimate removal

Log in to A and remove B from Team A, intercepting the request rather than letting it through. This is a real action A is allowed to perform, so the request is a valid template.

Step 6: send it to Repeater

Send the intercepted request to the Repeater tab so it can be edited and resent. Repeater keeps the request on screen and lets you fire it as many times as you like.

Step 7: change the target

The goal is to remove C from Team B, a team the attacker does not have access to or permissions over. If the server checks permissions properly, this should fail. If it does not, it will succeed.

Step 8: replace both identifiers

In the intercepted request, replace the team_id with Team B's team_id and the user_id with C's user_id. In the walkthrough those are 0002 and 1113 respectively. The request now asks the server to remove C from Team B, while the session sending it still belongs to A.

Step 9: send the request

The request succeeds. The response discloses C's username and Team B's name, which is the information disclosure side of the bug.

IDOR___Disclosure.mp4 From the original on HackerOne

Step 10: the removal takes effect

C is removed from Team B. Nothing about C's account changed; C simply lost membership of a team because a stranger asked the server to do it.

Step 11: the victim is notified

C receives an email from MTN telling them they have been removed from Team B.

removed_email.png
removed_email.png From the original on HackerOne

Removing every user

The researcher notes this can be done with a custom script or code, without Burp Suite, and describes the Intruder route:

  1. Intercept the request for removing a user and send it to the Burp Suite intercept tab.
  2. Configure the settings to brute-force through every team_id and user_id. This is not hard because every user_id and team_id has only four digits.
  3. Run the Intruder request. When a user_id and team_id match, the user whose ID has been matched is removed.
  4. The researcher estimates 12 hours to remove every user from every group they are in, with a maximum of 20 hours. Faster internet and a faster computer shorten the time needed to brute-force every user_id and team_id.

Why this works: with four digits there are only 10,000 possible values for each number, so the pair space is small enough for a computer to walk through. Each successful pair produces a removal, and a successful removal discloses the user's username and the team's name.

Why it happens

The removal action acts on the team_id and user_id supplied in the request, and the researcher's remediation list points at missing access control checks. The researcher's remediation list points at the missing controls: object-level user access control checks, permissions on the action, validation of access to a team_id, and a check that the submitted IDs belong to the caller's account. The report does not show the server-side code, so the exact place where the check is missing is not stated.

What an attacker could do

Anyone with an account on developers.mtn.com can exploit this. All that is needed is a user_id and a team_id to remove a user from their team, and the target's privileges do not matter: even the owner is vulnerable. A low-level user can remove their admin and owner from the team, and in the brute-force scenario every user can be removed from every team they are in, including owners and admins. The response also discloses the removed user's username and the team's name.

The fix

The report recommends proper session management and object-level user access control checks, applying access control mechanisms such as permissions to the action, validating access to a team_id, and checking that a user submitting the request is not tampering and is not submitting IDs that do not belong to their account. It does not say what was actually changed.

Other places to look

  • On other portals with team or organisation membership, replay a legitimate removal or leave request with another team's identifier and another user's identifier. A positive result is a success response naming the other user and team, and the victim losing membership.
  • Look for other membership actions driven by client-supplied IDs, such as role changes or invitations, and swap the identifiers the same way. A positive result is a change applied to an object the caller does not control.
  • Where identifiers are short and sequential, as with the four-digit IDs here, test whether enumeration of the pair is practical. A positive result is a reliable success response for pairs the caller has no relationship with.
  • Check whether responses to these actions echo names or other account details. A positive result is a response that discloses data about an object the caller should not be able to see.

Glossary

  • API: the interface a website uses to ask a server for data or to perform an action, like a serving hatch between browser and server.
  • Burp Suite: a tool that sits between browser and website so requests can be paused, read, edited and resent.
  • Cookie / token: a small piece of data your browser stores after login and sends with each request so the server recognises your session.
  • IDOR (Insecure Direct Object Reference): a bug where the server acts on an identifier from the request without checking the caller is allowed to use it.
  • Information disclosure: a response revealing data the caller should not be able to see.
  • Intruder: the Burp Suite component that automatically sends a request many times with different values in a marked position.
  • Proxy: the Burp Suite component that pauses requests between browser and server.
  • Repeater: the Burp Suite component that lets you edit and resend one captured request by hand.
  • Request / response: the message your browser sends to a server and the message the server sends back.
  • Session: the server's record of who you are after you log in, kept alive by a cookie or token.
  • team_id: the unique number identifying a team.
  • user_id: the unique number identifying a user account.

More by wallotry

View all

7 more disclosed reports, best first.

More from MTN Group

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.