IDOR [mtnmobad.mtnbusiness.com.ng]
The user profile update endpoint accepted a user-supplied identifier and email, allowing an authenticated attacker to modify another user's account details. An attacker could change every user's account information.
Originally disclosed on HackerOne
- Fixed in 18 hours
- Disclosed after 31 days
Steps To Reproduce:
- Go to https://mtnmobad.mtnbusiness.com.ng/#/dashboard/home with burp proxy
- Intercept a POST request to /app/dashboardData and review its response you will see emails and ids
- Go to https://mtnmobad.mtnbusiness.com.ng/#/userProfile
- change name, mobile, address etc. and intercept with burp proxy
- change the id and the email with victim's and forward the request
- The changes will be saved in the victim's account
Note:
If you already know account's email and id you can skip step 1 and 2
Supporting Material/References:
Impact
An attacker can change every user's account information
What the report shows
The target is the MTN Business self-service portal at mtnmobad.mtnbusiness.com.ng, a single-page application with hash-based routes such as #/dashboard/home and #/userProfile. The researcher found that the profile update endpoint trusts a client-supplied identifier, so one account can write changes into another account's profile.
The reproduction steps are short and direct:
- Browse to the dashboard with Burp Proxy running:
https://mtnmobad.mtnbusiness.com.ng/#/dashboard/home
- Intercept the POST request to
/app/dashboardData. The researcher notes that its response contains user emails and ids. - Open the profile page:
https://mtnmobad.mtnbusiness.com.ng/#/userProfile
- Change the name, mobile number, address and similar fields, and intercept the resulting request in Burp.
- Replace the id and the email in the request with the victim's values and forward it.
- The changes are saved in the victim's account.
The report adds a note that steps 1 and 2 can be skipped if the attacker already knows the victim's email and id. The supporting material is a screen recording of the flow:
The report includes a screen recording as supporting material. The report states the impact as being able to change every user's account information. It does not include the raw request or response bodies, the parameter names beyond id and email, or any version numbers. The platform records the report as critical severity, disclosed on 13 October 2022; the report text itself gives no bounty figure and no fix details.
Root cause
The profile update handler appears to identify the account to modify from a client-supplied value rather than from the authenticated session. The dashboard data endpoint's response contains emails and ids, and the profile update accepts an id and email from the caller. This is a classic insecure direct object reference on a write operation. The server authenticates the request but does not check that the object named in it belongs to the caller.
Impact
As the report puts it, an attacker can change every user's account information. In practice that means overwriting another user's name, mobile number and address. The report does not claim account takeover, password reset abuse or privilege escalation, and those outcomes are not demonstrated here.
How this kind of bug works
Object references appear wherever an application addresses a record: path segments (/users/1042), query strings (?account=1042), body fields ("id": 1042), and sometimes headers or cookies. A reference is insecure when the server uses it to select the record but never verifies that the authenticated principal is allowed to act on that record. Authentication answers "who are you"; authorisation answers "may you touch this object". IDOR is the gap between the two.
Write operations are often worse than reads because the effect persists and is visible to the victim. Sequential or guessable identifiers make discovery trivial, but the bug exists even with UUIDs if the identifiers leak, which is why a second endpoint that returns other users' ids turns an unguessable reference into an exploitable one. Multi-tenant SaaS, self-service portals and mobile APIs are common homes for this pattern, because the same handler serves many customers and the ownership check is easy to forget.
How to test for it
- Map the object-addressing surface. Create two accounts you control, one as attacker and one as victim, and record every identifier each account sees: numeric ids, UUIDs, account numbers, tenant ids, email addresses.
- Exercise every state-changing request with the attacker's session: profile updates, address books, saved payment methods, file uploads, invitations, settings toggles.
- In each request, swap the object reference for the victim's value while keeping the attacker's session cookie or token. Try the reference in the body, in the path, and in query parameters, and try both the id and the email where both are accepted.
- Confirm the effect from the victim's side: log in as the victim and check whether the change is visible. A response of
200 OKalone proves nothing. - Test the read side too. Endpoints that list or export data often return other users' records when a filter parameter is changed or removed.
A positive result is a persistent change or a data disclosure in the victim account that the attacker's session should not be able to cause. Common false positives: the server ignores the supplied id and uses the session (the change lands in the attacker's own account), the request fails authorisation but the UI still shows a success message, or the "victim" record belongs to the same organisation and sharing is intended. Always verify server-side state, not client-side rendering.
How it is fixed
Derive the target account from the authenticated session and ignore any client-supplied identifier for self-service operations. Where an identifier must be accepted, for example in admin or delegated-access flows, enforce an ownership or role check on the server for every request, on reads and writes alike. Use unguessable identifiers as defence in depth, not as the control. Reduce disclosure from listing endpoints so they return only the caller's records, and add regression tests that replay one user's request with another user's identifiers and expect a denial.
Hunting notes
Look at features where the client naturally holds an identifier: profile and settings pages, saved objects, support tickets, invoices, and anything with a "switch account" or "act as" flow. Recon signals include numeric or sequential ids in JSON responses, endpoints that return arrays of user objects with emails, and single-page apps whose API calls carry ids in the body rather than the path. Compare what the UI sends with what the server actually needs; a body field that duplicates session data is a candidate.
To make the report land, demonstrate a concrete cross-account effect with two accounts you own, show the before and after state from the victim's session, and keep the proof minimal. Redact other real users' data if you encounter it, and stop at the first confirmation rather than enumerating further.
What happened, in plain words
MTN Business runs a self-service website where customers log in to manage their own account: their name, mobile number, address and similar details. The researcher found that the page which saves those details could be tricked into saving them into somebody else's account instead of your own.
To understand why, you need two ideas. A request is the message your browser sends to a website when you do something, for example when you press Save on a form. A response is the message the website sends back. Normally the website decides which account to change by looking at who is logged in, for example through a session cookie, a small piece of data your browser holds after logging in that proves who you are. In this case, the request itself carried the account's id and email, and changing them changed which account was modified. Anyone who can edit that value before it reaches the server can point the change at a different person.
This kind of flaw is called an IDOR (Insecure Direct Object Reference): the application refers to records by an identifier, and it does not check that the person making the request is allowed to touch that particular record. A simple comparison: a cloakroom that hands out numbered tickets, but gives your coat to anyone who reads your number off your ticket and asks for it, without checking that the ticket is theirs.
The researcher's steps are short and direct:
- Open the dashboard while Burp Proxy is running:
https://mtnmobad.mtnbusiness.com.ng/#/dashboard/home
Burp Proxy is a tool that sits between your browser and the website and lets you read and edit the traffic in both directions. The address above is a single-page application: the part after # is handled inside the browser, so the page can change without a full reload.
-
Intercept the POST request to
/app/dashboardData. A POST request is the kind a browser sends when it submits data. The researcher notes that the response to this request contains user emails and ids. This matters because those are exactly the values needed to address another account: the site itself hands out the keys. -
Open the profile page:
https://mtnmobad.mtnbusiness.com.ng/#/userProfile
-
Change the name, mobile number, address and similar fields, and intercept the resulting request in Burp. This is the normal save action any user performs on their own profile.
-
Replace the
idand theemailin the request with the victim's values and forward it. Forwarding means letting the edited request continue to the server. Only the id and email of the account being changed are swapped. -
The changes are saved in the victim's account.
The report adds a note: if the attacker already knows the victim's email and id, steps 1 and 2 can be skipped. In other words, the dashboard leak is convenient but not strictly required; the core problem is that the save request accepts someone else's identifier at all.
The supporting material is a screen recording of the flow:
The report includes a screen recording as supporting material. The report states the impact plainly: an attacker can change every user's account information. It does not include the raw request or response bodies, the parameter names beyond id and email, or any version numbers. The platform records the report as critical severity, disclosed on 13 October 2022; the report text itself gives no bounty figure and no fix details.
Why does each step matter? Steps 1 and 2 show where the identifiers come from. Step 4 shows the legitimate action being captured. Step 5 is the actual attack: the same request, with one value changed. Step 6 is the proof, because the effect is visible in the victim's account, not just in a success message.
In general, how this kind of bug works
Object references appear wherever an application addresses a record: in the path (/users/1042), in the query string (?account=1042), in the body of a request ("id": 1042), and sometimes in headers or cookies. A reference is insecure when the server uses it to pick the record but never checks that the logged-in user is allowed to act on that record. Authentication answers "who are you"; authorisation answers "may you touch this object". IDOR is the gap between the two.
Write operations are often worse than reads, because the effect persists and the victim sees it. Sequential or guessable identifiers make discovery easy, but the bug exists even with random identifiers if those identifiers leak, which is why a second endpoint that returns other users' ids turns an unguessable reference into an exploitable one. Self-service portals and mobile APIs are common homes for this pattern, because one handler serves many customers and the ownership check is easy to forget.
How to test for it
- Map where objects are addressed. Create two accounts you control, one as attacker and one as victim, and record every identifier each account sees: numeric ids, random ids, account numbers, email addresses.
- Exercise every action that changes something with the attacker's session: profile updates, address books, saved payment methods, file uploads, invitations, settings toggles.
- In each request, swap the object reference for the victim's value while keeping the attacker's session cookie or token. Try the reference in the body, in the path and in query parameters, and try both the id and the email where both are accepted.
- Confirm the effect from the victim's side: log in as the victim and check whether the change is visible. A
200 OKresponse alone proves nothing. - Test the read side too. Endpoints that list or export data often return other users' records when a filter parameter is changed or removed.
A positive result is a persistent change or a data disclosure in the victim account that the attacker's session should not be able to cause. Common false positives: the server ignores the supplied id and uses the session (the change lands in the attacker's own account), the request fails authorisation but the page still shows a success message, or the "victim" record belongs to the same organisation and sharing is intended. Always verify the state on the server, not what the page displays.
How it is fixed
Derive the target account from the logged-in session and ignore any identifier supplied by the client for self-service operations. Where an identifier must be accepted, for example in admin or delegated-access flows, enforce an ownership or role check on the server for every request, on reads and writes alike. Use unguessable identifiers as an extra layer, not as the control. Reduce disclosure from listing endpoints so they return only the caller's records, and add regression tests that replay one user's request with another user's identifiers and expect a denial.
Hunting notes
Look at features where the client naturally holds an identifier: profile and settings pages, saved objects, support tickets, invoices, and anything with a "switch account" or "act as" flow. Signals worth watching include numeric or sequential ids in JSON responses, endpoints that return lists of user objects with emails, and single-page apps whose API calls carry ids in the body rather than the path. Compare what the page sends with what the server actually needs; a body field that duplicates session data is a candidate.
To make the report land, demonstrate a concrete cross-account effect with two accounts you own, show the before and after state from the victim's session, and keep the proof minimal. Redact other real users' data if you encounter it, and stop at the first confirmation rather than enumerating further.
Glossary
- Request: the message a browser sends to a website when you do something, such as submitting a form.
- Response: the message the website sends back.
- POST request: a request type used to submit data to the server.
- Session cookie: a small piece of data stored by the browser after login that identifies your session to the server.
- Token: a value used to prove identity or permission in a request, similar in role to a session cookie.
- Single-page application: a website where navigation happens inside the browser, often using the part of the address after
#. - Burp Proxy: a tool that sits between browser and website and lets you read and edit traffic in both directions.
- Intercept: to pause a request or response in such a tool so it can be inspected or changed before it continues.
- Forward: to let an intercepted request continue to the server.
- IDOR (Insecure Direct Object Reference): a flaw where the server uses an identifier from the request to pick a record without checking that the caller is allowed to access it.
- Identifier (id): a value that names a specific record, such as a user account.
- Authentication: proving who you are, for example by logging in.
- Authorisation: deciding whether an authenticated user is allowed to perform a given action on a given object.
- Parameter: a named value sent in a request, for example
idoremail. - Body: the part of a request that carries submitted data, as opposed to the address or headers.
- Query string: the part of a URL after
?that carries parameters. - Header: extra information attached to a request or response.
200 OK: the standard response code meaning the server accepted and processed the request.- False positive: a finding that looks like a vulnerability but is not, because the effect does not actually occur as believed.
- Regression test: an automated test that checks a fixed bug stays fixed.
- UUID: a long random-looking identifier, hard to guess.
- Multi-tenant: a service where one system serves many separate customers or organisations.
- Privilege escalation: gaining more permissions than you are supposed to have.
- Account takeover: gaining control of another person's account.