CVE-2021-21241
CSRF can expose users authentication token
描述
The Python "Flask-Security-Too" package is used for adding security features to your Flask application. It is an is a independently maintained version of Flask-Security based on the 3.0.0 version of Flask-Security. In Flask-Security-Too from version 3.3.0 and before version 3.4.5, the /login and /change endpoints can return the authenticated user's authentication token in response to a GET request. Since GET requests aren't protected with a CSRF token, this could lead to a malicious 3rd party site acquiring the authentication token. Version 3.4.5 and version 4.0.0 are patched. As a workaround, if you aren't using authentication tokens - you can set the SECURITY_TOKEN_MAX_AGE to "0" (seconds) which should make the token unusable.
如何修補 CVE-2021-21241
要修補 CVE-2021-21241,請將受影響套件升級到下列已修補版本。
- —升級至 4.0.0-1 或更新版本
- —升級至 3.4.5 或更新版本
- —升級至 61d313150b5f620d0b800896c4f2199005e84b1f 或更新版本
CVE-2021-21241 正在被利用嗎?
低 — EPSS 為 0.9%,目前沒有觀察到大規模利用活動。
受影響套件(3)
- from 0, < 4.0.0-1
- >= 3.3.0, < 3.4.5
- from 0, < 61d313150b5f620d0b800896c4f2199005e84b1f, < 6d50ee9169acf813257c37b75babe9c28e83542a | >= 3.3.0, < 3.4.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |