GitHub Advisoryadvisory · Packagist

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

HIGH Published 2024-05-21 Modified 2024-05-21 Official page ↗
Ecosystem
Packagist
Packages
scheb/two-factor-bundle
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-287
Reviewed
2024-05-21

Affected packages

• Packagist scheb/two-factor-bundle: >= 3.0.0, < 3.7.0 → fixed in 3.7.0

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.

Related

Weakness · CWE (1)

  • CWE-287 Improper Authentication weakness

References