Skip to content
Account takeover Write-up Beginner

Improper Authentication in a famous Trading website

The trading platform did not enforce OTP verification on the server side, so a request sent directly to an endpoint for sensitive account data was processed without the second factor. The author claims this let them view another user's sensitive account information without entering the OTP.

medium.com

Published on medium.com

Online trading platforms deal with sensitive user information and financial transactions, making security a top priority. During a recent security assessment of a well-known trading website, I discovered a critical OTP bypass vulnerability that allowed unauthorized access to sensitive content.

Anonymousshetty, on medium.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 backend checked credentials but never verified that the OTP step had been completed before serving sensitive endpoints.

Impact

An attacker with valid credentials could read another user's personal and financial data without the second factor, and the author says this could in some cases lead to full account takeover with unauthorised trades or withdrawals.

What the attacker needed

Valid account credentials; ability to send requests to the endpoint directly

The fix

OTP verification should be enforced server-side before any sensitive request is served, and the verified OTP session should be bound to the user session and checked on every sensitive call.

How it was found

  1. Log in with a valid username and password.
  2. The platform prompts for an OTP sent to the registered mobile number.
  3. Instead of entering the OTP, send a request directly to the endpoint that returns sensitive account information.
  4. The sensitive account data is returned without any OTP verification.

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.

A one-time password is the short code sent to your phone as a second check after your password. Here the website asked for that code but the server never actually confirmed it was entered before handing over account data. So anyone with a valid password could skip the phone check and read someone's account details.

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.