CVE-2021-21241
CVSS V2 Medium 4.3
CVSS V3 High 7.4
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.
Overview
- CVE ID
- CVE-2021-21241
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-01-11T21:15:13
- Last Modified Date
- 2021-01-19T15:43:12
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:flask-security-too_project:flask-security-too:*:*:*:*:*:*:*:* | 1 | OR | 3.3.0 | 3.4.5 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:P/I:N/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- NONE
- Availability Impact
- NONE
- Base Score
- 4.3
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 2.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- NONE
- Base Score
- 7.4
- Base Severity
- HIGH
- Exploitability Score
- 2.8
- Impact Score
- 4
References
Reference URL | Reference Tags |
---|---|
https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5 | Third Party Advisory |
https://pypi.org/project/Flask-Security-Too | Product Third Party Advisory |
https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1f | Patch Third Party Advisory |
https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-hh7m-rx4f-4vpv | Third Party Advisory |
https://github.com/Flask-Middleware/flask-security/pull/422 | Patch Third Party Advisory |
https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542a | Patch Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-21241 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21241 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:27:01 | Added to TrackCVE | |||
2022-12-05 19:44:56 | 2021-01-11T21:15Z | 2021-01-11T21:15:13 | CVE Published Date | updated |
2022-12-05 19:44:56 | 2021-01-19T15:43:12 | CVE Modified Date | updated | |
2022-12-05 19:44:56 | Analyzed | Vulnerability Status | updated |