CVE-2020-35681 Django Channels leakage of session identifiers using legacy AsgiHandler
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 5 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/python-django-channels(Ubuntu 18.04) | = 1.1.8.1-1; All versions | No fix listed | No fix yet |
| ubuntu/python-django-channels(Ubuntu 20.04) | = 2.2.0-1; = 2.3.0-1; = 2.3.1-1; = 2.4.0-1 +1 more | No fix listed | No fix yet |
| debian/python-django-channels(Debian 12) | < 3.0.3-1 | 3.0.3-1 | Fixed |
| debian/python-django-channels(Debian 13) | < 3.0.3-1 | 3.0.3-1 | Fixed |
| debian/python-django-channels(Debian 14) | < 3.0.3-1 | 3.0.3-1 | Fixed |
| djangoproject channels | >= 3.0.0, < 3.0.3 | 3.0.3 | Fixed |
| pypi channels(PyPI) | = 3.0.0; = 3.0.1; = 3.0.2; >= 3.0.0, < 3.0.3 | 3.0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi channels(PyPI) | >= 3.0.0, < 3.0.3 | 3.0.3 |
| pypi channels(PyPI) | = 3.0.0 | No fix listed |
| pypi channels(PyPI) | = 3.0.1 | No fix listed |
| pypi channels(PyPI) | = 3.0.2 | No fix listed |
| debian/python-django-channels(Debian:12) | < 3.0.3-1 | 3.0.3-1 |
| debian/python-django-channels(Debian:13) | < 3.0.3-1 | 3.0.3-1 |
| debian/python-django-channels(Debian:14) | < 3.0.3-1 | 3.0.3-1 |
| djangoproject channels | >= 3.0.0, < 3.0.3 | 3.0.3 |
| ubuntu/python-django-channels(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/python-django-channels(Ubuntu:18.04) | = 1.1.8.1-1 | No fix listed |
| ubuntu/python-django-channels(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/python-django-channels(Ubuntu:20.04) | = 2.2.0-1 | No fix listed |
| ubuntu/python-django-channels(Ubuntu:20.04) | = 2.3.0-1 | No fix listed |
| ubuntu/python-django-channels(Ubuntu:20.04) | = 2.3.1-1 | No fix listed |
| ubuntu/python-django-channels(Ubuntu:20.04) | = 2.4.0-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- channels.readthedocs.io exploit vendor-advisory
- channels.readthedocs.io release-notes vendor-advisory
- github.com vendor-advisory
- github.com product
- github.com third-party-advisory
- github.com
- Debian Security Tracker CVE-2020-35681 vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- channels.readthedocs.io issue-tracking
- www.cve.org issue-tracking