Open Redirect Affecting flask-security package, versions <1.7.5-2ubuntu0.20.04.1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.14% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU2004-FLASKSECURITY-2968224
  • published25 May 2024
  • disclosed2 Aug 2022

Introduced: 2 Aug 2022

CVE-2021-23385  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 flask-security to version 1.7.5-2ubuntu0.20.04.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream flask-security package and not the flask-security package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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 Scores

version 3.1