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.
- 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:
- Log into the myMTN NG mobile app.
- Set up your proxy tool to intercept the mobile API traffic and bypass the SSL pinning mechanism.
- Visit the transaction history section within the app and intercept the request with your proxy tool.
- Replace the
customer_idfield to any arbitrary MTN number to disclose transaction details of the victim.
Supporting Material/References:
{█████████}
Request to vulnerable endpoint
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.
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
- Log into the MyMTN NG mobile app.
- Configure a proxy to intercept the mobile API traffic and bypass SSL pinning.
- Open the transaction history section and intercept the request.
- 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.