Skip to content
Account takeover Write-up Beginner

My First Valid Bug

The login page sent an OTP and the server returned an error for an incorrect OTP, but the author modified the error response to a success response and the site proceeded as if the OTP was valid. This could let an attacker bypass OTP verification by tampering with the client-side response.

medium.com

Published on medium.com

This is my very first blog on bug bounty hunting, and I’m excited to share how I found my first real vulnerability, reported it responsibly. If you’re just getting started in cybersecurity or thinking about diving into bug bounty, I hope this helps!

Nuhman Jaseel A P, 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

Impact

An attacker could potentially bypass OTP verification by tampering with the response, though the text does not confirm a full account takeover.

What the attacker needed

Access to the login page; ability to intercept and modify responses

How it was found

  1. Go to the login page that asks for a phone number and sends an OTP.
  2. Intercept the request with Burp Suite and observe the server's success response after sending the phone number.
  3. Submit an incorrect OTP and see the server return an error message.
  4. Modify the error response to a success response and observe the site proceed as if the OTP was valid.

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 website sends a one-time code (OTP) to your phone to check it is you. The server should decide if the code is right, but here the web page seemed to trust a message it received and the person could change that message to say 'success'. That means someone might get past the code check without knowing 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.