GHSA-9phw-7h96-q3rv: Scheb/two factor bundle Scheb/two-factor-bundle Bypass Two-factor Authentication With Vulnerability
HIGHGHSA-9phw-7h96-q3rv is a HIGH (CVSS 7.4) scheb/two-factor-bundle bypass two-factor authentication with vulnerability (CWE-287: Improper Authentication) affecting Scheb/two factor bundle libraries in the Packagist ecosystem. The issue involves scheb/two-factor-bundle bypass two-factor authentication with remember-me option. Remediation is available by upgrading affected packages to version 4.11.0, 3.26.0.
GHSA-9phw-7h96-q3rv at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix GHSA-9phw-7h96-q3rv
To remediate this vulnerability, upgrade all affected Scheb/two factor bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade scheb/two-factor-bundle to 4.11.0
Upgrade scheb/two-factor-bundle to 3.26.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for scheb/two-factor-bundle
How to Check if You Are Affected
To determine whether your application is affected by GHSA-9phw-7h96-q3rv, inspect your project dependencies for Scheb/two factor bundle:
inspect dependencies for scheb/two-factor-bundle
Analyze the terminal output to locate any version of Scheb/two factor bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.11.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Scheb/two factor bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-9phw-7h96-q3rv Affected Scheb/two factor bundle Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
scheb/two-factor-bundle
|
Packagist |
≥ 4.0.0
< 4.11.0
|
4.11.0
|
|
scheb/two-factor-bundle
|
Packagist |
< 3.26.0
|
3.26.0
|
References
Frequently Asked Questions
What is GHSA-9phw-7h96-q3rv?
Which Scheb/two factor bundle versions are affected?
What version fixes GHSA-9phw-7h96-q3rv?
Is scheb/two-factor-bundle affected?
What is the CVSS score of GHSA-9phw-7h96-q3rv?
What CWE is associated with GHSA-9phw-7h96-q3rv?
How can I check Packagist dependencies for GHSA-9phw-7h96-q3rv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9phw-7h96-q3rv",
"modified" : "2024-05-21T18:22:04Z",
"published" : "2024-05-21T18:22:04Z",
"aliases" : [ ],
"summary" : "scheb/two-factor-bundle bypass two-factor authentication with remember-me option",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "scheb/two-factor-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.11.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "scheb/two-factor-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.26.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/scheb/two-factor-bundle/issues/253"
}, {
"type" : "WEB",
"url" : "https://github.com/scheb/two-factor-bundle/commit/3fbca9e821985559b444207a7c2d73b9b569b58b"
}, {
"type" : "WEB",
"url" : "https://github.com/scheb/two-factor-bundle/commit/a149808d25c1553757c529b9568913ea1cec0894"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/scheb/two-factor-bundle/2019-12-19.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/scheb/two-factor-bundle"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-21T18:22:04Z",
"nvd_published_at" : null
}
}