Skip to content
Account takeover Write-up Beginner

How I Earned My First $100 in a Bug Bounty Program (And How You C

The application allowed an attacker to bypass OTP verification by modifying the server's response to indicate success. This could give unauthorised access to user accounts.

Divyesh Jagad Follow

Published on medium.com

Let me take you on a journey — one where I turned my curiosity and a little technical know-how into my first $100. Bug bounty hunting isn’t just a side hustle; it’s a treasure hunt for the digital age, one where you find vulnerabilities, report them ethically, and get rewarded.

Divyesh Jagad, 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 application relied on a client-side response field to determine OTP verification success instead of validating on the server.

Impact

An attacker could bypass OTP verification and gain unauthorised access to user accounts, potentially leading to data theft or financial fraud.

What the attacker needed

A valid mobile number; Burp Suite or similar proxy

How it was found

  1. Log in using a random mobile number.
  2. Enter a random OTP.
  3. Intercept the OTP submission request with Burp Suite.
  4. Modify the response to set status to true and show success.
  5. Forward the modified response to gain access.

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 one-time code (OTP), the app checks if the code is correct. Here, the app trusted a message from the user's browser saying the code was correct, so someone could fake that message and get in without the real code.

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.