Vulnerability Name:

CVE-2021-23385 (CCN-232834)

Assigned:2021-05-18
Published:2021-05-18
Updated:2022-08-09
Summary: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.
CVSS v3 Severity:6.1 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
5.4 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:U/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
5.4 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N)
4.8 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:U/RL:U/RC:R)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:5.5 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-601
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2021-23385

Source: XF
Type: UNKNOWN
pypi-cve202123385-open-redirect(232834)

Source: CCN
Type: flask-security GIT Repository
flask-security

Source: MISC
Type: Product, Third Party Advisory
https://github.com/mattupstate/flask-security

Source: CCN
Type: SNYK-PYTHON-FLASKSECURITY-1293234
Open Redirect

Source: MISC
Type: Exploit, Third Party Advisory
https://security.snyk.io/vuln/SNYK-PYTHON-FLASKSECURITY-1293234

Source: MISC
Type: Technical Description, Third Party Advisory
https://snyk.io/blog/url-confusion-vulnerabilities/

Source: CCN
Type: Mend Vulnerability Database
CVE-2021-23385

Vulnerable Configuration:Configuration 1:
  • cpe:/a:flask-security_project:flask-security:*:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:7760
    P
    python3-Flask-Security-Too-3.4.2-150200.3.6.1 on GA media (Moderate)
    2023-06-12
    oval:org.opensuse.security:def:628
    P
    Security update for python-Flask-Security (Moderate) (in QA)
    2022-09-27
    oval:org.opensuse.security:def:629
    P
    Security update for python-Flask-Security-Too (Moderate) (in QA)
    2022-09-27
    BACK
    flask-security_project flask-security *