GHSA-9phw-7h96-q3rv: scheb/two-factor-bundle bypass two-factor authentication with remember-me option
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 rememberme cookie. When the rememberme checkbox was used during login, a "REMEMBERME" cookie was created.
Published May 21, 2024
Affected packages
scheb/two-factor-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.0.0, < 4.11.0
- Fixed in
- 4.11.0
- Check
composer show scheb/two-factor-bundle
scheb/two-factor-bundle
- Ecosystem
- Composer (PHP)
- Affected
- < 3.26.0
- Fixed in
- 3.26.0
- Check
composer show scheb/two-factor-bundle
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/scheb/two-factor-bundle/issues/253
- https://github.com/scheb/two-factor-bundle/commit/3fbca9e821985559b444207a7c2d73b9b569b58b
- https://github.com/scheb/two-factor-bundle/commit/a149808d25c1553757c529b9568913ea1cec0894
- https://github.com/FriendsOfPHP/security-advisories/blob/master/scheb/two-factor-bundle/2019-12-19.yaml
- https://github.com/advisories/GHSA-9phw-7h96-q3rv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
