Skip to content
Account takeover Disclosed report Beginner

OTP code Leaked in API Response

The application returns the one-time password (OTP) in the API response when a user requests a quote, instead of sending it only to the phone. An attacker could use this leaked OTP to sign up or log in as other users.

tinopreter Follow

Originally disclosed on HackerOne

Critical 9.1 View original
  • Triaged in 11 hours
  • Fixed in 2 months
  • Disclosed after 5 months

Summary:

The application https://corporate.admyntec.co.za allows users to sign up for device insurance. When you Get a Quote, it requires authentication via phone number. An OTP is sent to the phone number to further validate the action was initiated by the legit user. Except this same OTP code is returned in the OTP response.

Steps To Reproduce:

1.Vist https://corporate.admyntec.co.za/customerInsurance and get a quote. 2. Have a proxy interceptor tool like burpsuite running. Now enter any valid MTN number. 3. Notice the OTP code is also returned 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.

The original report as published on HackerOne, by tinopreter. 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 server includes the OTP in the API response body instead of only delivering it via SMS.

Impact

An attacker could sign up or log in to other users' accounts using the leaked OTP.

What the attacker needed

A valid phone number; ability to intercept API responses

How it was found

  1. Visit the customer insurance page and start a quote.
  2. Use a proxy tool to intercept the request.
  3. Enter a valid phone number.
  4. Observe the OTP code in the API response.

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 sign up, the app sends a code to your phone to prove it's you. Here, the app also puts that same code in the reply it sends back to the browser, so anyone watching the network can see it. That means someone else could use your code to get into your 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 by tinopreter

View all

8 more disclosed reports, best first.

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.