Skip to content
Account takeover Write-up Intermediate

Critical Account Takeover (MFA + Auth Bypass) due to Cookie Misconfiguration

The login flow issued a valid session cookie after only the username step, and the MFA enrolment endpoint did not check that the user had actually completed password or MFA verification. An attacker who knew a victim's username could reach the MFA enrolment endpoint and be logged in without a password or MFA code.

Sharat Kaikolamthuruthil Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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

Impact

An attacker who knows a victim's username could take over the account without any password or MFA code, which the company rated critical.

What the attacker needed

Knowledge of the victim's username; ability to intercept and modify requests

How it was found

  1. Start the login flow and submit a username at the SSO login page.
  2. At the password options page, enter a wrong password and submit.
  3. Intercept the resulting POST request and its 302 redirect response.
  4. Replace the request with a POST to the MFA enrolment endpoint and forward it.
  5. Observe that the application logs the user in without a password or MFA code.

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, a website gives your browser a cookie so it remembers you. Here the site handed out that cookie too early, right after you typed a username, before checking the password. A second page meant for setting up two-factor login did not check whether you had really logged in, so anyone who knew a username could skip straight to it and be let in.

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 Sharat Kaikolamthuruthil

View all

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