GitHub Advisoryadvisory · Packagist

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

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: >= 4.0.0, < 4.11.0 → fixed in 4.11.0 • Packagist scheb/two-factor-bundle: < 3.26.0 → fixed in 3.26.0

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.

Related

Weakness · CWE (1)

  • CWE-287 Improper Authentication weakness

References