Skip to content
Account takeover Disclosed report Intermediate

Ability to Add and Verify Uncontrolled Mobile Numbers Leading to Account Takeover (ATO)

The OTP verification response could be altered by the client to show success even when the OTP was wrong, letting an attacker link a phone number they do not control to their account. This could lead to account takeover of the victim's account.

trev0ck Follow

Originally disclosed on HackerOne

Critical 9.1 View original
  • Triaged in 3 months
  • Fixed in 4 months
  • Disclosed after 5 months

Summary

A critical vulnerability was identified in the OTP verification process on the shop.mtn.ng platform, which allows attackers to add and verify mobile numbers that they do not control. By tampering with the OTP verification request, an attacker can link a victim's mobile number to their account. This leads to an Account Takeover (ATO) scenario where the attacker gains full access to the victim's account without owning or controlling the victim's phone number.

Steps to Reproduce

Initiate OTP Request

  • Begin the login or registration process on the platform.
  • Enter a valid mobile number (MSISDN) and request an OTP.

Capture OTP Verification Request

  • Use a proxy tool like Burp Suite or Caido to intercept the OTP verification request when submitting the OTP.
  • The intercepted request will look like this
HTTP
POST /mtn_otp/index/verification/ HTTP/2
Host: shop.mtn.ng
Content-Type: application/x-www-form-urlencoded
Content-Length: 53

ajax=1&action=verifyotp&msisdn=██████&otp=███████

Manipulate Server Response

  • Upon capturing the request, submit an incorrect OTP to receive the server's response
JSON
{
  "status": 400,
  "message": "Invalid OTP",
  "msisdn": "█████████",
  "success": false
}

Modify the response in the intercepted traffic to indicate a successful verification

JSON
{
  "status": 200,
  "message": "success",
  "msisdn": "██████████",
  "success": true
}

This will trick the client into thinking that the OTP was successfully verified, even though the OTP is incorrect.

  • The manipulated server response now grants full access to the victim's phone number account. Even though the OTP was incorrect, the altered response bypasses the verification, which could allow the attacker to log in as the target user.

NOTE I do not own this phone number at all and as you can see it is now linked to my account

████████

Root Cause

  • The application fails to protect against the manipulation of the OTP verification response. The server does not perform integrity checks on the response sent back to the client, allowing attackers to alter it and bypass OTP verification entirely.

Impact

An attacker can exploit this flaw to hijack user accounts by manipulating the OTP verification response. This allows the attacker to

  1. Access personal user information such as names, phone numbers, and email addresses.
  2. Modify sensitive account settings like passwords, linked emails, and phone numbers.
  3. Perform unauthorized actions such as transactions or purchases.
  4. Further escalate the attack to other services connected to the victim's account.

The original report as published on HackerOne, by trev0ck. 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 client-side application trusted the server's OTP verification response without any integrity check, so an attacker could tamper with it to bypass verification.

Impact

An attacker could hijack user accounts by manipulating the OTP verification response, gaining access to personal information, modifying account settings, and performing unauthorized actions.

What the attacker needed

A valid mobile number to request OTP; ability to intercept and modify HTTP responses; victim's phone number known

The fix

Verification should be enforced server-side with integrity checks rather than relying on the client.

How it was found

  1. Start the login or registration process and enter a valid mobile number to request an OTP.
  2. Intercept the OTP verification request with a proxy tool.
  3. Submit an incorrect OTP to get the server's error response.
  4. Modify the intercepted response to indicate successful verification.
  5. The client then treats the OTP as verified and links the phone number to the attacker's account.

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.

When you log in with a phone number, the app sends a one-time code (OTP) and checks it on the server. Here, the app trusted the reply from the server without checking if it was genuine, so an attacker could change the reply to say 'success' even with a wrong code. That let them attach someone else's phone number to their own account.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More from MTN Group

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.