Advisory

GHSA-pcjh-6r5h-r92r

Also known as: None

Summary

django-sendfile2 before 0.7.0 contains reflected file download vulnerability

Details

Similar to CVE-2022-36359 for Django, django-sendfile2 did not protect against a reflected file download attack in version 0.6.1 and earlier. If the file name used by django-sendfile2 was derived from user input, then it would be possible to perform a such an attack. A new version of django-sendfile2 will be released. Either download django-sendfile2 0.7.0 as a workaround or sanitize user input yourself, using Django's patch as a template: https://github.com/django/django/commit/bd062445cffd3f6cc6dcd20d13e2abed818fa173

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-08-11 18:12 UTC
Modified
2024-12-03 06:06 UTC

Affected packages and fixes

django-sendfile2

PyPI · All systems

Affected

  • introduced 0, fixed 0.7.0 (ecosystem)

Fixed versions

0.7.0

Fix

  • Fixed version 0.7.0
    pip install --upgrade django-sendfile2==0.7.0

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