Advisory

GHSA-v542-8q9x-cffc

Also known as: CVE-2020-35681, PYSEC-2021-113

Summary

Django Channels leakage of session identifiers using legacy AsgiHandler

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-03-19 21:29 UTC
Modified
2024-09-13 18:01 UTC

Affected packages and fixes

channels

PyPI · All systems

Affected

  • introduced 3.0.0, fixed 3.0.3 (ecosystem)

Fixed versions

3.0.3

Fix

  • Fixed version 3.0.3
    pip install --upgrade channels==3.0.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences