PT-2022-9396 · Werkzeug+4 · Werkzeug+4
Noam Moshe
·
Published
2022-08-02
·
Updated
2024-12-06
·
CVE-2021-23385
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Flask-Security versions all
Description
This issue allows an attacker to bypass URL validation and redirect a user to an arbitrary URL by providing multiple back slashes. The vulnerability is only exploitable if an alternative WSGI server other than Werkzeug is used, or the default behavior of Werkzeug is modified using
autocorrect location header=False. It affects the get post logout redirect and get post login redirect functions.Recommendations
As a temporary workaround, consider disabling the
get post logout redirect and get post login redirect functions until a patch is available.
Restrict access to alternative WSGI servers other than Werkzeug to minimize the risk of exploitation.
Avoid modifying the default behavior of Werkzeug using autocorrect location header=False until the issue is resolved.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Flask-Security
Linuxmint
Suse
Ubuntu
Werkzeug