Skip to content
Account takeover Write-up Intermediate

“CVE-2023–43837: Two-Factor Authentication (x2FA) Bypass Vulnerability in Roundcube Webmail Plugin”

The Roundcube Plus plugin's two-factor authentication could be bypassed because the step after the password check did not properly enforce the second factor. An attacker who already knew a user's password could craft requests to disable 2FA and fetch backup codes, gaining access without the second factor.

ChandSingh Follow

Published on medium.com

“CVE-2023–43837: Two-Factor Authentication (2FA) Bypass Vulnerability in Roundcube Plus Webmail Plugin”

Chand Singh, 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 post-password 2FA step accepted requests to disable 2FA and reveal backup codes without verifying that the correct second factor had been supplied.

Impact

An attacker who already knew a victim's password could disable 2FA and obtain backup codes, potentially gaining unauthorised access to the account and its sensitive information.

What the attacker needed

Attacker knows the victim's password; victim uses affected plugin versions 1.0-1.1.8

The fix

The issue was fixed in version 1.1.9, released on 15 September 2023, and users were urged to update promptly.

How it was found

  1. Log in with the correct password, then enter a wrong 2FA code and capture the CSRF token.
  2. Reuse that CSRF token in a request that disables 2FA.
  3. Send a request to fetch the account's backup codes.

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.

Two-factor authentication (2FA) is a second check, such as a code from an app, on top of your password. Here the plugin asked for that code but did not properly stop someone who typed the wrong one, so a person who already had the password could turn the second check off. That means the extra protection could be removed without ever proving they had the code.

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.