Lucene search

K
friendsofphpOpenJS FoundationFRIENDSOFPHP:FIREBASE:PHP-JWT:CVE-2021-46743
HistoryMar 30, 2022 - 12:00 a.m.

Key/algorithm type confusion

2022-03-3000:00:00
OpenJS Foundation
github.com
10
firebase
php-jwt
algorithm confusion

CVSS2

5.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS3

9.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

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

AI Score

6.9

Confidence

Low

EPSS

0.001

Percentile

46.0%

Description In Firebase PHP-JWT before 6.0.0, an algorithm-confusion issue (e.g., RS256 / HS256) exists via the kid (aka Key ID) header, when multiple types of keys are loaded in a key ring. This allows an attacker to forge tokens that validate under the incorrect key. NOTE: this provides a straightforward way to use the PHP-JWT library unsafely, but might not be considered a vulnerability in the library itself. References https://nvd.nist.gov/vuln/detail/CVE-2021-46743 firebase/php-jwt#351 https://github.com/firebase/php-jwt/releases/tag/v6.0.0 https://github.com/FriendsOfPHP/security-advisories/blob/master/firebase/php-jwt/CVE-2021-46743.yaml

Affected configurations

Vulners
Node
firebasephp_jwtRange<6.0.0
VendorProductVersionCPE
firebasephp_jwt*cpe:2.3:a:firebase:php_jwt:*:*:*:*:*:*:*:*

CVSS2

5.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS3

9.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

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

AI Score

6.9

Confidence

Low

EPSS

0.001

Percentile

46.0%

Related for FRIENDSOFPHP:FIREBASE:PHP-JWT:CVE-2021-46743