GitHub Advisoryadvisory · PyPI
GHSA-v542-8q9x-cffc Django Channels leakage of session identifiers using legacy AsgiHandler
HIGH
Official page ↗
- Aliases
- CVE-2020-35681
- Ecosystem
- PyPI
- Packages
- channels
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
- Weaknesses
- CWE-200
- Reviewed
- 2021-03-13
Affected packages
• PyPI channels: >= 3.0.0, < 3.0.3 → fixed in 3.0.3
Description
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.
Related
Alias · CVE (1)
- CVE-2020-35681 Django Channels 3.x before 3.0.3 allows remote attackers to obtain sensitive information from a different request scope. vulnerability
Weakness · CWE (1)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-35681 advisory
- https://github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022 web
- https://channels.readthedocs.io/en/stable/releases/3.0.3.html web
- https://channels.readthedocs.io/en/stable/releases/index.html web
- https://github.com/advisories/GHSA-v542-8q9x-cffc advisory
- https://github.com/django/channels package
- https://github.com/django/channels/releases web
- https://github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml web