GitHub Advisoryadvisory · Packagist
GHSA-h6mp-mc7g-mg49 scheb/two-factor-bundle bypass two-factor authentication with unverified JWT trusted device token
HIGH
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
- https://github.com/scheb/two-factor-bundle/issues/143 web
- https://github.com/scheb/two-factor-bundle/commit/8890c1e47ae89e0ac6f8a40fd4bb4b91c2081aa7 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/scheb/two-factor-bundle/2018-07-08.yaml web
- https://github.com/scheb/two-factor-bundle package