UBUNTU-CVE-2021-23385

Source
https://ubuntu.com/security/CVE-2021-23385
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23385.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-23385
Related
Published
2022-08-02T14:15:00Z
Modified
2022-08-02T14:15:00Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

This affects all versions of package Flask-Security. When using the getpostlogoutredirect and getpostloginredirect functions, it is possible to bypass URL validation and redirect a user to an arbitrary URL by providing multiple back slashes such as \\evil.com/path. This vulnerability is only exploitable if an alternative WSGI server other than Werkzeug is used, or the default behaviour of Werkzeug is modified using 'autocorrectlocationheader=False. Note: Flask-Security is not maintained anymore.

References

Affected packages

Ubuntu:Pro:18.04:LTS / flask-security

Package

Name
flask-security
Purl
pkg:deb/ubuntu/flask-security?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.5-2ubuntu0.18.04.1~esm1

Affected versions

1.*

1.7.5-1
1.7.5-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.7.5-2ubuntu0.18.04.1~esm1",
            "binary_name": "python3-flask-security"
        }
    ]
}

Ubuntu:20.04:LTS / flask-security

Package

Name
flask-security
Purl
pkg:deb/ubuntu/flask-security?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.7.5-2ubuntu0.20.04.1

Affected versions

1.*

1.7.5-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.7.5-2ubuntu0.20.04.1",
            "binary_name": "python3-flask-security"
        }
    ]
}

Ubuntu:22.04:LTS / flask-security

Package

Name
flask-security
Purl
pkg:deb/ubuntu/flask-security?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.0.0-1ubuntu0.1

Affected versions

4.*

4.0.0-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "4.0.0-1ubuntu0.1",
            "binary_name": "python3-flask-security"
        }
    ]
}