Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. scheb/two-factor-bundle
  4. ›
  5. GHSA-h6mp-mc7g-mg49

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

May 21, 2024

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/scheb/two-factor-bundle/2018-07-08.yaml
  • github.com/advisories/GHSA-h6mp-mc7g-mg49
  • github.com/scheb/two-factor-bundle
  • github.com/scheb/two-factor-bundle/commit/8890c1e47ae89e0ac6f8a40fd4bb4b91c2081aa7
  • github.com/scheb/two-factor-bundle/issues/143

Code Behaviors & Features

Detect and mitigate GHSA-h6mp-mc7g-mg49 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.7.0

Fixed versions

  • 3.7.0

Solution

Upgrade to version 3.7.0 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

packagist/scheb/two-factor-bundle/GHSA-h6mp-mc7g-mg49.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.