GHSA-9phw-7h96-q3rv scheb/two-factor-bundle bypass two-factor authentication with remember-me option

Not scored Published

Attackers can bypass two-factor authentication by manipulating session cookies when the remember-me feature is enabled, gaining unauthorized access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-9phw-7h96-q3rv?

GHSA-9phw-7h96-q3rv is an authentication bypass vulnerability in scheb/two-factor-bundle, published on 21 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In versions prior to 3.26.0 and prior to 4.11.0 of the "scheb/two-factor-bundle" project, a security vulnerability allowed attackers to bypass two-factor authentication (2FA) using the remember_me cookie. When the remember_me checkbox was used during login, a "REMEMBERME" cookie was created. Upon redirection to the 2FA page, attackers could manipulate the SESSIONID key, granting access to the homepage "/" and gaining authentication without completing 2FA.

Which versions are affected by GHSA-9phw-7h96-q3rv?

4 open source packages ship an affected version, including scheb/two-factor-bundle.

PackageAffectedFixed in
scheb/two-factor-bundle PackagistAll versions3.26.0
scheb/two-factor-bundle PackagistAll versions3.26.0
scheb/two-factor-bundle PackagistFrom 4.0.04.11.0
scheb/two-factor-bundle PackagistFrom 4.0.04.11.0

How do I fix GHSA-9phw-7h96-q3rv?

Upgrade scheb/two-factor-bundle to a fixed version for your release line: 3.26.0 or 4.11.0.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is GHSA-9phw-7h96-q3rv being exploited?

There is no known exploitation of GHSA-9phw-7h96-q3rv in the wild and no public exploit code.

Sources

Is GHSA-9phw-7h96-q3rv in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free