Skip to content
Account takeover Write-up Intermediate

From Casual Curiosity to Crucial Findings: vibe pentesting uncovers serious vulnerabilities in…

The app's OTP was derived from a reference number returned in the OTP request, making it predictable, and an API returned full profile details for any phone number to any holder of a valid token. An attacker could log in as other users and harvest personal data such as names, phone numbers, emails and vehicle details.

kushjain0107 Follow

Published on medium.com

As a full-time penetration tester and product security engineer, I have a knack for uncovering how things work. One day, driven by curiosity, I decided to test a motorcycling app named Triumph India.

Kushal Jain, 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 OTP was generated predictably from a client-visible reference number, and the profile API lacked an authorisation check tying the requested phone number to the caller.

Impact

An attacker could log in as other users and retrieve personal data including names, mobile numbers, emails and vehicle details; the author notes the endpoints still worked after a new app version.

What the attacker needed

A valid bearer token; knowledge of a target phone number; the app or API access

How it was found

  1. Request an OTP and note the reference number in the response.
  2. Derive the OTP from the first four digits of the reference number, adjusting by one if needed.
  3. Submit the derived OTP to log in.
  4. Send a POST request to the profile API with a phone number and a valid bearer token.
  5. Read the returned profile details for that 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 ask the app to send a login code, it also sends back a reference number. The code is just the first four digits of that number, sometimes plus or minus one, so anyone can work out the code without receiving the SMS. Separately, a profile lookup accepted any phone number and returned that person's details to anyone with a valid login token.

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.