Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-gxjj-f44v-qm94 — flask-security-too (CVE-2021-32618)

🟢 CVSS 2.0 — Low ✅ No Known Exploit CWE-601 OSV
2.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Open Redirect in Flask-Security-Too

# Withdrawn

Duplicate of GHSA-6qmf-fj6m-686c

# Original description

Flask-Security-Too allows redirects after many successful views (e.g. /login) by honoring the ?next query param. There is code in FS to validate that the url specified in the next parameter is either relative OR has the same netloc (network location) as the requesting URL.

This check utilizes Pythons urlsplit library. However many browsers are very lenient on the kind of URL they accept and 'fill in the blanks' when presented with a possibly incomplete URL. As a concrete example - setting http://login?next=\\\github.com

will pass FS's relative URL check however many browsers will gladly convert this to http://github.com. Thus an attacker could send such a link to an unwitting user, using a legitimate site and have it redirect to whatever site they want.

This is considered a low severity due to the fact that if Werkzeug is used (which is very common with Flask applications) as the WSGI layer, it by default ALWAYS ensures that the Location header is absolute - thus making this attack vector mute. It is possible for application writers to modify this default behavior by setting the 'autocorrect_location_header=False`.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity low, availability none.

Weakness class

GHSA-gxjj-f44v-qm94 is classified as CWE-601: Open Redirect. A redirect target is taken from user input, so a trusted link can send the visitor to an attacker's site.

Affected software

GHSA-gxjj-f44v-qm94 is recorded against 1 package.

  • flask-security-too

Timeline and source

Published on 14 December 2021 and last revised on 2 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)

Details

Severity LOW
CVSS Score 2.0
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
CWE CWE-601
Public Exploit ✅ No
Source OSV
Published 2021-12-14
Updated 2026-08-20
Modified 2024-12-02
Fix URL N/A

Affected Packages

Software From version Fixed in
flask-security-too

Similar Threats

Free Vulnerability Check

Is your site affected by GHSA-gxjj-f44v-qm94?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-gxjj-f44v-qm94 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.