pysec-2023-158
Vulnerability from pysec
The session fixation vulnerability allowed the authenticated user to continue accessing Airflow webserver even after the password of the user has been reset by the admin - up until the expiry of the session of the user. Other than manually cleaning the session database (for database session backend), or changing the secure_key and restarting the webserver, there were no mechanisms to force-logout the user (and all other users with that).
With this fix implemented, when using the database session backend, the existing sessions of the user are invalidated when the password of the user is reset. When using the securecookie session backend, the sessions are NOT invalidated and still require changing the secure key and restarting the webserver (and logging out all other users), but the user resetting the password is informed about it with a flash message warning displayed in the UI. Documentation is also updated explaining this behaviour.
Users of Apache Airflow are advised to upgrade to version 2.7.0 or newer to mitigate the risk associated with this vulnerability.
{ "affected": [ { "package": { "ecosystem": "PyPI", "name": "apache-airflow", "purl": "pkg:pypi/apache-airflow" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.7.1rc1" } ], "type": "ECOSYSTEM" } ], "versions": [ "1.10.0", "1.10.1", "1.10.10", "1.10.10rc1", "1.10.10rc2", "1.10.10rc3", "1.10.10rc4", "1.10.10rc5", "1.10.11", "1.10.11rc1", "1.10.11rc2", "1.10.12", "1.10.12rc1", "1.10.12rc2", "1.10.12rc3", "1.10.12rc4", "1.10.13", "1.10.13rc1", "1.10.14", "1.10.14rc1", "1.10.14rc2", "1.10.14rc3", "1.10.14rc4", "1.10.15", "1.10.15rc1", "1.10.1b1", "1.10.1rc2", "1.10.2", "1.10.2b2", "1.10.2rc1", "1.10.2rc2", "1.10.2rc3", "1.10.3", "1.10.3b1", "1.10.3b2", "1.10.3rc1", "1.10.3rc2", "1.10.4", "1.10.4b2", "1.10.4rc1", "1.10.4rc2", "1.10.4rc3", "1.10.4rc4", "1.10.4rc5", "1.10.5", "1.10.5rc1", "1.10.6", "1.10.6rc1", "1.10.6rc2", "1.10.7", "1.10.7rc1", "1.10.7rc2", "1.10.7rc3", "1.10.8", "1.10.8rc1", "1.10.9", "1.10.9rc1", "1.8.1", "1.8.2", "1.8.2rc1", "1.9.0", "2.0.0", "2.0.0b1", "2.0.0b2", "2.0.0b3", "2.0.0rc1", "2.0.0rc2", "2.0.0rc3", "2.0.1", "2.0.1rc1", "2.0.1rc2", "2.0.2", "2.0.2rc1", "2.1.0", "2.1.0rc1", "2.1.0rc2", "2.1.1", "2.1.1rc1", "2.1.2", "2.1.2rc1", "2.1.3", "2.1.3rc1", "2.1.4", "2.1.4rc1", "2.1.4rc2", "2.2.0", "2.2.0b1", "2.2.0b2", "2.2.0rc1", "2.2.1", "2.2.1rc1", "2.2.1rc2", "2.2.2", "2.2.2rc1", "2.2.2rc2", "2.2.3", "2.2.3rc1", "2.2.3rc2", "2.2.4", "2.2.4rc1", "2.2.5", "2.2.5rc1", "2.2.5rc2", "2.2.5rc3", "2.3.0", "2.3.0b1", "2.3.0rc1", "2.3.0rc2", "2.3.1", "2.3.1rc1", "2.3.2", "2.3.2rc1", "2.3.2rc2", "2.3.3", "2.3.3rc1", "2.3.3rc2", "2.3.3rc3", "2.3.4", "2.3.4rc1", "2.4.0", "2.4.0b1", "2.4.0rc1", "2.4.1", "2.4.1rc1", "2.4.2", "2.4.2rc1", "2.4.3", "2.4.3rc1", "2.5.0", "2.5.0rc1", "2.5.0rc2", "2.5.0rc3", "2.5.1", "2.5.1rc1", "2.5.1rc2", "2.5.2", "2.5.2rc1", "2.5.2rc2", "2.5.3", "2.5.3rc1", "2.5.3rc2", "2.6.0", "2.6.0b1", "2.6.0rc1", "2.6.0rc2", "2.6.0rc3", "2.6.0rc4", "2.6.0rc5", "2.6.1", "2.6.1rc1", "2.6.1rc2", "2.6.1rc3", "2.6.2", "2.6.2rc1", "2.6.2rc2", "2.6.3", "2.6.3rc1", "2.7.0", "2.7.0b1", "2.7.0rc1", "2.7.0rc2" ] } ], "aliases": [ "CVE-2023-40273" ], "details": "The session fixation vulnerability allowed the authenticated user to continue accessing Airflow webserver even after the password of the user has been reset by the admin - up until the expiry of the session of the user. Other than manually cleaning the session database (for database\u00a0session backend), or changing the secure_key and restarting the webserver, there were no mechanisms to force-logout the user (and all other users with that).\n\nWith this fix implemented, when using the\u00a0database\u00a0session backend, the existing sessions of the user are invalidated when the password of the user is reset. When using the securecookie\u00a0session backend, the sessions are NOT invalidated and still require changing the secure key and restarting the webserver (and logging out all other users), but the user resetting the password is informed about it with a flash message warning displayed in the UI. Documentation is also updated explaining this behaviour.\n\nUsers of Apache Airflow are advised to upgrade to version 2.7.0 or newer to mitigate the risk associated with this vulnerability.\n", "id": "PYSEC-2023-158", "modified": "2023-09-04T08:29:37.781470+00:00", "published": "2023-08-23T16:15:00+00:00", "references": [ { "type": "WEB", "url": "https://github.com/apache/airflow/pull/33347" }, { "type": "ADVISORY", "url": "https://lists.apache.org/thread/9rdmv8ln4y4ncbyrlmjrsj903x4l80nj" }, { "type": "ARTICLE", "url": "https://www.openwall.com/lists/oss-security/2023/08/23/1" }, { "type": "WEB", "url": "https://www.openwall.com/lists/oss-security/2023/08/23/1" } ], "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "type": "CVSS_V3" } ] }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.