GHSA-h6mp-mc7g-mg49 scheb/two-factor-bundle bypass two-factor authentication with unverified JWT trusted device token

Not scored Published

An attacker can bypass two-factor authentication by generating trusted device cookies using a vulnerable JWT library, allowing unauthorized access to user accounts.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-h6mp-mc7g-mg49?

GHSA-h6mp-mc7g-mg49 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, with no action from the victim.

Official description

Before version 3.7 the bundle is vulnerable to a security issue in JWT, which can be exploited by an attacker to generate trusted device cookies on their own, effectively by-passing two-factor authentication.

Which versions are affected by GHSA-h6mp-mc7g-mg49?

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

PackageAffectedFixed in
scheb/two-factor-bundle PackagistFrom 3.0.03.7.0
scheb/two-factor-bundle PackagistFrom 3.0.03.7.0

How do I fix GHSA-h6mp-mc7g-mg49?

Upgrade scheb/two-factor-bundle to 3.7.0 or later.

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

Is GHSA-h6mp-mc7g-mg49 being exploited?

There is no known exploitation of GHSA-h6mp-mc7g-mg49 in the wild and no public exploit code.

Sources

Is GHSA-h6mp-mc7g-mg49 in your software?

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

Check your SBOMs for free