Bug 1915794 (CVE-2021-21241)

Summary: CVE-2021-21241 python-flask-security: unprotected GET requests could lead to malicious party obtaining the authentication token
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: devrim, itamar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-13 18:27:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1915795    
Bug Blocks:    

Description Marian Rehak 2021-01-13 12:54:36 UTC
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.

Reference:

https://github.com/Flask-Middleware/flask-security/pull/422

Comment 1 Marian Rehak 2021-01-13 12:54:55 UTC
Created python-flask-security tracking bugs for this issue:

Affects: fedora-all [bug 1915795]

Comment 2 Product Security DevOps Team 2021-01-13 18:27:51 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.