Cross-site Request Forgery (CSRF) Affecting python3-Flask-Security-Too package, versions <3.4.2-150200.3.3.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.93% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES152-PYTHON3FLASKSECURITYTOO-3018172
  • published7 Sept 2022
  • disclosed6 Sept 2022

Introduced: 6 Sep 2022

CVE-2021-21241  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade SLES:15.2 python3-Flask-Security-Too to version 3.4.2-150200.3.3.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-Flask-Security-Too package and not the python3-Flask-Security-Too package as distributed by SLES. See How to fix? for SLES:15.2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1