5.4medium
Open Redirect
- Severity
- 5.4medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.11% (higher than 66% of CVEs)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-4298-89hc-6rfvPYSEC-2021-337SNYK-PYTHON-FLASKUSER-1293188
Description
This affects all versions of package Flask-User. When using the make_safe_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 or \\\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 package | Versions | Reported by |
|---|---|---|
| Flask-User | before unspecified | CVE List |
| flask-user (PyPI) | up to 1.0.2.2, all versions | GitHub Advisory Database, PyPA Advisory Database |
| flask-user_project flask-user | Not specified | NVD |
All scores
| snyk | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
This affects all versions of package Flask-User. When using the make_safe_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 or \\\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.
GitHub Advisory Database
This affects all versions of package Flask-User. When using the make_safe_url function, it is possible to bypass URL validation and redirect a user to an arbitrary URL by providing multiple backslashes such as /////evil.com/path or \\\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 a todas las versiones del paquete Flask-User. Cuando se usa la función make_safe_url, es posible omitir la comprobación de la URL y redirigir a un usuario a una URL arbitraria al proporcionar múltiples barras invertidas, tal y como /////evil.com/path o \\\\evil.com/path. Esta vulnerabilidad es sólo explotable si un servidor WSGI alternativo que no sea Werkzeug es usado, o es modificado el comportamiento predeterminado de Werkzeug usando "autocorrect_location_header=False
References
| https://snyk.io/vuln/SNYK-PYTHON-FLASKUSER-1293188 | advisory, third-party-advisory, web | |
| https://github.com/lingthio/Flask-User | package, product, third-party-advisory, web | |
| https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__utils.py | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23401 | advisory | |
| https://github.com/advisories/GHSA-4298-89hc-6rfv | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/flask-user/PYSEC-2021-337.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23401 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4298-89hc-6rfv changed 2024-09-20 | CC-BY-4.0 |
| NVD | CVE-2021-23401 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-337 changed 2023-11-08 | CC-BY-4.0 |