Skip to content
Account takeover Write-up Intermediate

When Try Again Later Still Means You Guessed Right: OLX Account T

The OLX verification code flow returned different responses for correct versus incorrect codes even during lockout, creating an oracle that allowed an attacker to guess the four-digit code within the lockout window. This enabled account takeover via password reset, and existing sessions were not revoked after a password change.

Monx Research Follow

Published on medium.com

This case study started with a verification-code flow that looked normal on the surface. After repeated wrong attempts, OLX showed a lockout message that should have ended the attack path.

Monx Research, 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 continued to validate submitted codes and returned a differential response (presence or absence of an invalid-code marker) even while the lockout state was active, and the code remained valid longer than the lockout period.

Impact

An attacker could recover the correct verification code and take over any account, and because existing sessions were not revoked after a password change, the attacker could remain logged in even after the legitimate owner changed the password.

What the attacker needed

Victim's phone number or account identifier; ability to trigger password reset; automated tool like Burp Intruder

The fix

The lockout state should return identical responses for all submission outcomes, and verification code validity should be shortened to match or fall below the lockout window; additionally, all existing sessions should be invalidated on password change.

How it was found

  1. Trigger the lockout by submitting incorrect codes until the lockout banner appears.
  2. While locked out, submit a wrong code and observe both the lockout banner and an invalid-code signal.
  3. Submit the correct code and observe the lockout banner but no invalid-code signal.
  4. Use a tool like Burp Intruder with a number-range payload to try all 10,000 four-digit combinations and grep for the word 'invalid' to find the request where the marker disappears.
  5. Submit the recovered correct code on a fresh session outside the lockout window to reset the password and take over the account.

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 verification code is a short number sent to your phone to prove it's you. The site tried to block guessing by locking you out after too many wrong tries, but it still showed a different message when you guessed correctly, even during the lockout. That let an attacker try all possible codes and spot the right one, then use it to reset someone's password and take over their account.

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.

More by Monx Research

View all

3 more disclosed reports, best first.

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.