38 lines
1.8 KiB
YAML
38 lines
1.8 KiB
YAML
id: CVE-2021-32618
|
|
|
|
info:
|
|
name: Python Flask-Security - Open Redirect
|
|
author: 0x_Akoko
|
|
severity: medium
|
|
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.
|
|
remediation: |
|
|
Upgrade to the latest version of Python Flask-Security library to fix the open redirect vulnerability.
|
|
reference:
|
|
- 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
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 6.1
|
|
cve-id: CVE-2021-32618
|
|
cwe-id: CWE-601
|
|
epss-score: 0.00104
|
|
epss-percentile: 0.42356
|
|
cpe: cpe:2.3:a:flask-security_project:flask-security:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: flask-security_project
|
|
product: flask-security
|
|
tags: cve,cve2021,redirect,flask
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- '{{BaseURL}}/login?next=\\\interact.sh'
|
|
|
|
matchers:
|
|
- type: regex
|
|
part: header
|
|
regex:
|
|
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1
|
|
# digest: 4b0a00483046022100fbf5d80ee733d36c2a6eea8ed2d6ab4171600c3db4fb79af37ce5e8ab4e065a9022100e94496601bf8ca557462b30f2696298dbdda194ade19652fed4c466b92fa5c28:922c64590222798bb761d5b6d8e72950 |