CVE-2021-21241
Last modified
CVE-2021-21241 is a high-severity vulnerability rated 7.4/10 on the CVSS scale. 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. EPSS estimates a 0.92% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Flask-Security-Too Project | Flask-Security-Too | >= 3.3.0, < 3.4.5 |
References
- https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1fPatch, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542aPatch, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/pull/422Patch, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5Third Party Advisory
- https://pypi.org/project/Flask-Security-TooProduct, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1fPatch, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542aPatch, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/pull/422Patch, Third Party Advisory
- https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5Third Party Advisory
- https://pypi.org/project/Flask-Security-TooProduct, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-21241?
How severe is CVE-2021-21241?
How do I fix CVE-2021-21241?
Are you affected by CVE-2021-21241?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
