Skip to content
Account takeover Write-up Beginner

OTP Login Security Test: I Found a Possible Auth Bypass | by Samadhan Shimple

The article describes testing an OTP login flow by modifying the verification response in Burp Suite to see if the application trusts a client-side success message. It does not confirm a vulnerability, only discusses the possibility and the need for server-side validation.

samadhanshimple Follow

Published on samadhanshimple.medium.com

Multi-factor authentication (MFA) is an important security feature used to protect user accounts. Even if someone knows your password, they should not be able to log in without completing the second verification step, such as entering a one-time password (OTP).

Samadhan shimple, on samadhanshimple.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 might rely on client-side state to decide if OTP verification succeeded, instead of the server independently validating the OTP.

Impact

If the server grants an authenticated session without validating the OTP, it could allow unauthorised access to an account and expose private information.

What the attacker needed

Authorised testing; Burp Suite; valid credentials for an account

The fix

The backend must validate the OTP for the current login attempt before issuing an authenticated session, and protected API endpoints must independently enforce authentication.

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.

This article is about checking whether a website's login is truly secure. The author used a tool to change the message the website sends back after entering a one-time code, to see if the site would let them in without the correct code. They did not find a real bug, but explain why the server must always check the code itself.

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 samadhanshimple

View all

4 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.