CVE-2021-23393
JSON

5.4medium

Open Redirect

Severity
5.4medium CVSS:3.1 by snyk
Exploit likelihood
0.72% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-pjc4-3w99-j7v4PYSEC-2021-96SNYK-PYTHON-FLASKUNCHAINED-1293189

Description

This affects the package Flask-Unchained before 0.9.0. When using the the _validate_redirect_url function, 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.

Affected

Product or packageVersionsReported by
Flask-Unchainedfrom unspecified before 0.9.0CVE List
flask-unchained (PyPI)before 0.9.0, before 71e36b28166f9ffbe0a991f51127f0984f7e6a40GitHub Advisory Database, PyPA Advisory Database
flask_unchained_project flask_unchainedbefore 0.9.0NVD

All scores

snyk5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

This affects the package Flask-Unchained before 0.9.0. When using the the _validate_redirect_url function, 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.

NVD (es)

Esto afecta al paquete Flask-Unchained versiones anteriores a 0.9.0. Cuando se usa la función _validate_redirect_url, es posible omitir la comprobación de la URL y redireccionar a un usuario a una URL arbitraria proporcionando múltiples barras invertidas, como por ejemplo \\\evil.com/path. Esta vulnerabilidad sólo es explotable si un servidor WSGI alternativo a Werkzeug es usado, o se modifica el comportamiento por defecto de Werkzeug usando "autocorrect_location_header=False

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23393 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-pjc4-3w99-j7v4 changed 2024-09-20CC-BY-4.0
NVDCVE-2021-23393 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-96 changed 2023-11-08CC-BY-4.0