Skip to content
Account takeover Write-up Intermediate

How a Simple MFA Test Turned Into an Interesting Meta Authentication Research Case

The MFA verification flow allowed a large number of incorrect submissions without meaningful restrictions, and previously generated OTP codes remained valid for over 24 hours and multiple codes could be used simultaneously. An attacker could potentially brute-force or reuse old codes to bypass MFA, though the text does not confirm a full account takeover.

mohammad.ehab7760 Follow

Published on medium.com

Like many security researchers, I occasionally spend time reviewing authentication flows on platforms that I personally use. Most of the time, nothing interesting happens.

Mohammed Ehab, 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 missing or weak rate limiting on the MFA verification endpoint and improper invalidation of old one-time codes, allowing multiple codes to remain valid simultaneously for an extended period.

Impact

An attacker could potentially brute-force the MFA code or reuse an old code to bypass the second factor, though the text does not confirm a full account takeover and notes the behaviour was not considered an immediate security issue.

What the attacker needed

Access to the MFA verification page; a valid username and password; victim's account or own account for testing

The fix

The underlying behaviour was fixed after responsible disclosure, though the text does not detail the specific fix.

How it was found

  1. Review the platform's MFA verification flow.
  2. Notice that the verification page tolerates many incorrect submissions without restrictions.
  3. Observe that previously generated codes remain valid for more than 24 hours.
  4. Notice that multiple previously generated codes remain valid simultaneously until one is successfully used.

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.

Multi-factor authentication (MFA) adds a second step to logging in, often a six-digit code sent to your phone. This report found that the system did not limit how many wrong guesses someone could make, and old codes stayed usable for a long time. That could let an attacker guess or reuse a code to get into an 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 mohammad.ehab7760

View all

1 more disclosed report, 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.