CVE-2023-49438:
Open redirect vulnerability in Flask-Security-Too
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.42718%
CWE
Published
12/27/2023
Updated
9/20/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Flask-Security-Too | pip | < 5.3.3 | 5.3.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient validation of the 'next' parameter in redirect logic. Key points:
- The core validation function (validate_redirect_url) failed to account for browser slash normalization patterns like '/' and '/'.
- The login/register view handlers directly use this validation when processing redirects.
- Werkzeug >=2.1.0's default behavior (disabling autocorrect_location_header) exacerbated the issue by allowing relative redirects.
- The patch involved strengthening the regex validation, confirming the vulnerability was in the redirect validation workflow.