CVE-2021-21241 – flask-security-too
Package
Manager: pip
Name: flask-security-too
Vulnerable Version: >=3.3.0 <3.4.5
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
CVSS v4.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
EPSS: 0.00533 pctl0.66404
Details
CSRF can expose users authentication token ### Issue 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. ### Patches Version 3.4.5 and soon to be released 4.0.0 are patched. ### Workarounds If you aren't using authentication tokens - you can set the SECURITY_TOKEN_MAX_AGE to "0" (seconds) which should make the token unusable. ### References None
Metadata
Created: 2021-01-11T20:38:28Z
Modified: 2024-09-20T17:48:13Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-hh7m-rx4f-4vpv/GHSA-hh7m-rx4f-4vpv.json
CWE IDs: ["CWE-352"]
Alternative ID: GHSA-hh7m-rx4f-4vpv
Finding: F007
Auto approve: 1