Skip to content
Account takeover Write-up Intermediate

Broken Authentication & 2FA Bybass ‘Business logic Error’

A saved profile-update request could be replayed after the user logged out and enabled two-factor authentication, and the change still applied. An attacker holding such a request could modify account details without being logged in and without passing the second factor.

ghostxzx Follow

Published on medium.com

Hi Hunter this is mohammed yassin ‘Ghostxz’ Again, Back with Bug in authentication flow let to business logic failure, The bug is sample but the impact can be high.

Mohammed Yassin, 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 profile-update endpoint did not properly validate the session or authentication state, so a previously captured request was still accepted after logout and with 2FA enabled.

Impact

An attacker with a captured profile-update request could modify account details without authentication and without passing two-factor authentication.

What the attacker needed

A captured profile-update request; victim has 2FA enabled

How it was found

  1. Change the name in the profile and capture the request with a proxy tool
  2. Enable two-factor authentication and log out
  3. Replay the saved request
  4. Observe that the profile change is applied despite being logged out and 2FA being on

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.

When you log in, the site gives your browser a token so it knows who you are. This report says a request to change profile details still worked after the person logged out and turned on two-factor authentication, which is a second check (usually a code) meant to stop someone using a stolen password. That suggests the server was not properly checking who sent the request.

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.