Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863509 (CVE-2021-23385) - dev-python/flask-security: open redirect in non-default configuration
Summary: dev-python/flask-security: open redirect in non-default configuration
Status: RESOLVED FIXED
Alias: CVE-2021-23385
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Security
URL: https://security.snyk.io/vuln/SNYK-PY...
Whiteboard: C4 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-04 03:01 UTC by John Helmert III
Modified: 2022-09-30 14:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-08-04 03:01:54 UTC
CVE-2021-23385:

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.

Snyk only seems to have tested against the original now unmaintained
Flask-Security at https://github.com/mattupstate/flask-security. Asked
if they've tested against Flask-Security-Too.
Comment 1 Larry the Git Cow gentoo-dev 2022-09-29 08:08:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfd440a755b77c146e1f0e0c48ed1190fc82a7b

commit 8bfd440a755b77c146e1f0e0c48ed1190fc82a7b
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-09-29 08:07:34 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-09-29 08:07:38 +0000

    dev-python/flask-security: Remove last-rited pkg
    
    Closes: https://bugs.gentoo.org/867415
    Closes: https://bugs.gentoo.org/863509
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-python/flask-security/Manifest                 |  2 -
 .../flask-security/flask-security-4.1.4.ebuild     | 66 ---------------------
 .../flask-security/flask-security-4.1.5.ebuild     | 67 ----------------------
 dev-python/flask-security/metadata.xml             | 13 -----
 profiles/package.mask                              | 12 ----
 5 files changed, 160 deletions(-)