CVE-2020-35681
Django Channels leakage of session identifiers using legacy AsgiHandler
Auswirkung
Django Channels 3.x before 3.0.3 allows remote attackers to obtain sensitive information from a different request scope. The legacy channels.http.AsgiHandler class, used for handling HTTP type requests in an ASGI environment prior to Django 3.0, did not correctly separate request scopes in Channels 3.0. In many cases this would result in a crash but, with correct timing, responses could be sent to the wrong client, resulting in potential leakage of session identifiers and other sensitive data. Note that this affects only the legacy Channels provided class, and not Django's similar ASGIHandler, available from Django 3.0.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| pip | channels | >= 3.0.0, < 3.0.3 | 3.0.3 |
Betroffene Produkte · Djangoproject
| Produkt | Betroffene Versionen |
|---|---|
| Channels | ab 3.0.0 vor 3.0.3 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://channels.readthedocs.io/en/stable/releases/3.0.3.html
- https://channels.readthedocs.io/en/stable/releases/index.html
- https://github.com/django/channels/releases
- https://github.com/advisories/GHSA-v542-8q9x-cffc
- https://nvd.nist.gov/vuln/detail/CVE-2020-35681
- https://github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022
- https://github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml