Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-41106— File reference keys leads to incorrect hashes on HMAC algorithms

Quick assessment

Affected
lcobucci jwt
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Jwt是一个使用Json Web Token和Json Web Signature的简单库。 Lcobucci jwt 存在数据伪造问题漏洞,该漏洞源于产品中基于hmac算法使用文件路径作为哈希密钥来验证令牌导致未能验证数据的有效性。攻击者可通过伪造的数据发起请求。以下产品及版本受到影响:Lcobucci jwt 3.4.6、Lcobucci jwt 4.0.4 及 Lcobucci jwt 4.1.5 之前版本。

CVSS 4.4 · Medium EPSS 0.21% · P10

Possible ATT&CK Techniques 1 AI

T1552.004 · Private Keys
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-41106

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
File reference keys leads to incorrect hashes on HMAC algorithms
Source: CVE Program / CVE List V5
Vulnerability Description
JWT is a library to work with JSON Web Token and JSON Web Signature. Prior to versions 3.4.6, 4.0.4, and 4.1.5, users of HMAC-based algorithms (HS256, HS384, and HS512) combined with `Lcobucci\JWT\Signer\Key\LocalFileReference` as key are having their tokens issued/validated using the file path as hashing key - instead of the contents. The HMAC hashing functions take any string as input and, since users can issue and validate tokens, users are lead to believe that everything works properly. Versions 3.4.6, 4.0.4, and 4.1.5 have been patched to always load the file contents, deprecated the `Lcobucci\JWT\Signer\Key\LocalFileReference`, and suggest `Lcobucci\JWT\Signer\Key\InMemory` as the alternative. As a workaround, use `Lcobucci\JWT\Signer\Key\InMemory` instead of `Lcobucci\JWT\Signer\Key\LocalFileReference` to create the instances of one's keys.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对数据真实性的验证不充分
Source: CVE Program / CVE List V5
Vulnerability Title
Lcobucci jwt 数据伪造问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Jwt是一个使用Json Web Token和Json Web Signature的简单库。 Lcobucci jwt 存在数据伪造问题漏洞,该漏洞源于产品中基于hmac算法使用文件路径作为哈希密钥来验证令牌导致未能验证数据的有效性。攻击者可通过伪造的数据发起请求。以下产品及版本受到影响:Lcobucci jwt 3.4.6、Lcobucci jwt 4.0.4 及 Lcobucci jwt 4.1.5 之前版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
lcobucci jwt >= 3.4.0, < 3.4.6 -

II. Public POCs for CVE-2021-41106

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-41106

请登录查看更多情报信息。

Patches & Fixes for CVE-2021-41106 (2)

Vendor Advisories for CVE-2021-41106 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2021-41106

No comments yet


Leave a comment