7.4
HIGH
CVE-2021-21241
Flask-Security-Too CSRF Token Disclosure
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.

INFO

Published Date :

Jan. 11, 2021, 9:15 p.m.

Last Modified :

Jan. 19, 2021, 3:43 p.m.

Remotely Exploitable :

Yes !

Impact Score :

4.0

Exploitability Score :

2.8
Affected Products

The following products are affected by CVE-2021-21241 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Flask-security-too_project flask-security-too
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-21241.

URL Resource
https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1f Patch Third Party Advisory
https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542a Patch Third Party Advisory
https://github.com/Flask-Middleware/flask-security/pull/422 Patch Third Party Advisory
https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5 Third Party Advisory
https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-hh7m-rx4f-4vpv Third Party Advisory
https://pypi.org/project/Flask-Security-Too Product Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-21241 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-21241 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Jan. 19, 2021

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (excluding) 3.4.5 OR *cpe:2.3:a:flask-security-too_project:flask-security-too:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (excluding) 3.4.5
  • Initial Analysis by [email protected]

    Jan. 15, 2021

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:N/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
    Changed Reference Type https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1f No Types Assigned https://github.com/Flask-Middleware/flask-security/commit/61d313150b5f620d0b800896c4f2199005e84b1f Patch, Third Party Advisory
    Changed Reference Type https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542a No Types Assigned https://github.com/Flask-Middleware/flask-security/commit/6d50ee9169acf813257c37b75babe9c28e83542a Patch, Third Party Advisory
    Changed Reference Type https://github.com/Flask-Middleware/flask-security/pull/422 No Types Assigned https://github.com/Flask-Middleware/flask-security/pull/422 Patch, Third Party Advisory
    Changed Reference Type https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5 No Types Assigned https://github.com/Flask-Middleware/flask-security/releases/tag/3.4.5 Third Party Advisory
    Changed Reference Type https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-hh7m-rx4f-4vpv No Types Assigned https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-hh7m-rx4f-4vpv Third Party Advisory
    Changed Reference Type https://pypi.org/project/Flask-Security-Too No Types Assigned https://pypi.org/project/Flask-Security-Too Product, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:* versions from (including) 3.3.0 up to (excluding) 3.4.5
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-21241 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-21241 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.12 }} -0.00%

score

0.45349

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability