HexBrain

MTN Group · Report #2635315

Yet Another OTP code Leaked in the API Response

Validstatus
criticalseverity
135upvotes
8 Jan 2025disclosed

How it was found

Summary:

This is much similar to my report here(https://hackerone.com/reports/2633888) , except it affects a different domain. The application requests a phone number for authentication, then sends an OTP code to the user. But the OTP is leaked in the response which defeats the whole purpose of it's implementation.

Steps To Reproduce:

{F3486534}

Supporting Material/References:

https://hackerone.com/reports/2633888

Recommendation

Don't return the OTP code in the API's response

Impact

It's possible to sign up with other users accounts. It's possible to log into other users accounts as well. Another thing I noticed is that, you can sign up with any 10-digit phone number since the OTP is in the response for you to use, makes creating junk accounts easily possible.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original