Skip to content
Account takeover Write-up Beginner

Tata’s B2B platform returned OTPs in API responses

The login API for Tata nexarc returned the generated one-time password in its response body, so anyone who knew a target's phone number could read the OTP and log in as that user. The author used this to reach admin accounts, including one belonging to Tata Business Hub and one linked to Tata Steel.

eaton-works.com

Published on eaton-works.com

If you have ever logged into a website or app, odds are you get an OTP (one-time-password) sent to you via email or SMS. In recent months I have found a spate of insecure OTP implementations that can be bypassed to enable account takeover.

Eaton, on eaton-works.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the login endpoint included the generated OTP in its JSON response, even though the client never used that field.

Impact

An attacker who knew a victim's phone number could take over the account, and the author reached accounts with admin privileges over a corporate page, employees, order history and subscriptions.

What the attacker needed

Target's phone number; web browser

The fix

The OTP field was removed from the API response, and the text says the vulnerability was fixed the day after it was reported.

How it was found

  1. Open the login flow and trigger the API call that checks for a registered user and sends the OTP.
  2. Set a breakpoint in the client-side JavaScript that parses the encrypted API response.
  3. Read the decrypted response and note the field containing the OTP.
  4. Use that OTP to log into the account tied to the phone number.

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 write-up has not been written yet. The Original tab links to the source.

When you log in with a phone number, the site sends you a one-time code (OTP) by SMS to prove the phone is yours. Here the server also put that same code inside the reply it sent back to the browser, so the person logging in could simply read it instead of waiting for the SMS. Anyone who knew someone else's phone number could therefore log in as them.

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.

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.