Python Flask-Security - Open Redirect Detection
| Reporter | Title | Published | Views | Family All 41 |
|---|---|---|---|---|
| CVE-2021-32618 | 17 May 202118:15 | – | attackerkb | |
| CVE-2021-32618 | 27 Apr 202309:58 | – | circl | |
| flask-security 输入验证错误漏洞 | 17 May 202100:00 | – | cnnvd | |
| CVE-2021-32618 | 17 May 202118:05 | – | cve | |
| CVE-2021-32618 Open Redirect Vulnerability | 17 May 202118:05 | – | cvelist | |
| Open Redirect in Flask-Security-Too | 17 May 202120:51 | – | github | |
| Open Redirect in Flask-Security-Too | 14 Dec 202118:14 | – | github | |
| Open Redirect in Flask-Security-Too | 17 May 202100:00 | – | gitlab | |
| CVE-2021-32618 | 17 May 202118:05 | – | mend | |
| Python Flask-Security - Open Redirect | 15 Oct 202602:05 | – | nuclei |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Python Flask-Security contains an open redirect vulnerability."""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'Python Flask-Security - Open Redirect Detection',
'description': '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.',
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2021', 'redirect', 'flask', 'flask-security_project', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['auxiliary/scanner/http/login_page_detector'],
},
},
'references': [
'https://github.com/Flask-Middleware/flask-security/security/advisories/GHSA-6qmf-fj6m-686c',
'https://github.com/Flask-Middleware/flask-security/issues/486',
'https://nvd.nist.gov/vuln/detail/CVE-2021-32618',
'https://github.com/ARPSyndicate/cvemon',
'https://github.com/ARPSyndicate/kenzer-templates',
],
'cve': 'CVE-2021-32618',
}
def run(self):
r = self.http_request(method="GET", path='/login?next=\\\\\\interact.sh', allow_redirects=False)
if not r or r.status_code != 200:
return False
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
header_regexes = ('(?m)^(?:Location\\s*?:\\s*?)(?:https?:\\/\\/|\\/\\/|\\/\\\\\\\\|\\/\\\\)(?:[a-zA-Z0-9\\-_\\.@]*)interact\\.sh\\/?(\\/|[^.].*)?$',)
if (any(re.search(rx, headers, 0) for rx in header_regexes)):
self.set_info(
severity='medium',
reason="Python Flask-Security - Open Redirect detected",
path='/login?next=\\\\\\interact.sh',
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
6.4Medium risk
Vulners AI Score6.4
CVSS 25.8
CVSS 3.13.1 - 6.1
EPSS0.02838