flask-security-too
Affected
- introduced
3.3.0, fixed3.4.5(ecosystem)
Fixed versions
3.4.5
Fix
- Fixed version
3.4.5pip install --upgrade flask-security-too==3.4.5
Advisory
Also known as: CVE-2021-21241, PYSEC-2021-91
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
High Basis: The source's own band: HIGH
3.3.0, fixed 3.4.5 (ecosystem)3.4.5
3.4.5pip install --upgrade flask-security-too==3.4.5Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0