Skip to content
Account takeover Disclosed report Intermediate

Bypassing 2FA with conventional session management - open.rocket.chat

After a user changed their account email, the confirmation link logged them straight in without asking for the second factor. An attacker who controls the mailbox receiving the confirmation could therefore reach the account without the 2FA code.

hackeriron1 Follow

Originally disclosed on HackerOne

  • Triaged in 47 days
  • Fixed in 22 months
  • Disclosed after 23 months

Summary: Hii Team,

I have found a vulnerability in open.rocket.chat and I able to bypass 2FA by Email confirmation link. In this case, attackers use the email confirmation link because, often, 2FA is not implemented on the system’s login page after a email confirmation.

Releases Affected:

https://open.rocket.chat

Steps To Reproduce:

Attack scenario : 1). Sign up with email. 2). add 2FA. 3). Go to account change email (Email verification will be sent to victim email). 4). Attacker able to login with email verification link without 2FA code.

Supporting Material/References:

same vulnerability was in Instagram but via password reset. https://infosecwriteups.com/how-i-couldve-bypassed-the-2fa-security-of-instagram-once-again-43c05cc9b755

Suggested mitigation

Do not direct login after email confirmed.

##POC Video ███

I hope you will understand If you need more info, I will provide you.

Impact

Using this method, attackers can bypass the two-factor authentication in open.rocket.chat where the architecture of the site or platform makes it possible.

The original report as published on HackerOne, by hackeriron1. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the email-change confirmation flow issued an authenticated session on success instead of requiring the user to log in again and pass the second factor.

Impact

An attacker able to receive the confirmation email could bypass two-factor authentication and access the account, where the platform's design allows it.

What the attacker needed

An account with 2FA enabled; control of the email receiving the link

How it was found

  1. Create an account using an email address.
  2. Enable two-factor authentication on the account.
  3. Start an email change in the account settings, which sends a verification link.
  4. Open the verification link and observe that login succeeds without any 2FA 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 report has not been written yet. The Original tab links to the source.

Two-factor authentication (2FA) is a second proof of identity, usually a short code from an app, asked for after the password. Here the site treated clicking an emailed confirmation link as enough to be logged in, so the code step was skipped. Anyone who could read that email could get into the 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 hackeriron1

View all

3 more disclosed reports, best first.

More from Rocket.Chat

View all

The newest disclosed reports for this program.

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.