Vulnerability Details : CVE-2021-23385
Potential exploit
This affects all versions of package Flask-Security. When using the get_post_logout_redirect and get_post_login_redirect functions, it is possible to bypass URL validation and redirect a user to an arbitrary URL by providing multiple back slashes such as \\\evil.com/path. This vulnerability is only exploitable if an alternative WSGI server other than Werkzeug is used, or the default behaviour of Werkzeug is modified using 'autocorrect_location_header=False. **Note:** Flask-Security is not maintained anymore.
Vulnerability category: Open redirect
Products affected by CVE-2021-23385
- cpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-23385
2.39%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 82 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-23385
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
2.8
|
2.5
|
Snyk |
CWE ids for CVE-2021-23385
-
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-23385
-
https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234
Open Redirect in flask-security | CVE-2021-23385 | SnykExploit;Third Party Advisory
-
https://github.com/mattupstate/flask-security
GitHub - mattupstate/flask-security: Quick and simple security for Flask applicationsProduct;Third Party Advisory
-
https://snyk.io/blog/url-confusion-vulnerabilities/
URL confusion vulnerabilities in the wild: Exploring parser inconsistencies | SnykTechnical Description;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2023/08/msg00034.html
[SECURITY] [DLA 3545-1] flask-security security update
Jump to