Skip to content
Account takeover Write-up Beginner

How I found my first two valid bugs + mindset

The OTP verification endpoint lacked rate limiting and code expiration, allowing an attacker to brute-force the OTP and potentially bypass phone verification. The author also found a missing rate limit on OTP sending, enabling SMS flooding.

medium.com

Published on medium.com

Hello friends, I am a beginner bug bounty hunter. I started almost a year ago, on 10/14/2024, and today I reported my first two valid bugs.

parazit, 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 verification endpoint lacked both a rate limit and an expiration mechanism for the code.

Impact

An attacker could brute-force the OTP to bypass phone verification, and could also flood a victim's phone with SMS messages; however, a rate limit of about 700 requests per IP was in place, slowing the attack.

What the attacker needed

Access to the product request form; ability to intercept and modify requests; a valid phone number to receive OTP

The fix

The endpoint should enforce a strict rate limit on OTP verification attempts and ensure OTP codes expire after a short time.

How it was found

  1. Fill in the product request form with phone number, name, and quantity, then submit.
  2. Capture the OTP verification request in Burp Suite.
  3. Resend the same OTP code after one hour and observe it still returns True.
  4. Attempt to brute-force all OTP combinations from 00000 to 99999.
  5. After about 700 requests, get blocked, indicating a rate limit was implemented.
  6. Change IP and test the same OTP code again; it still returns True.

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 (OTP) is a short code sent to your phone to prove it's you. If the server doesn't limit how many times you can guess or how long the code stays valid, an attacker can try all possible codes until they find the right one. Here, the code never expired and there was no limit on guesses, so guessing was possible.

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.