Advisory

GHSA-37hp-765x-j95x

Also known as: CVE-2017-7233, PYSEC-2017-9

Summary

Django open redirect and possible XSS attack via user-supplied numeric redirect URLs

Details

Django 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18 relies on user input in some cases to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.is_safe_url()) considered some numeric URLs "safe" when they shouldn't be, aka an open redirect vulnerability. Also, if a developer relies on is_safe_url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2019-01-04 17:50 UTC
Modified
2024-09-18 16:25 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.10a1, fixed 1.10.7 (ecosystem)

Fixed versions

1.10.7

Fix

  • Fixed version 1.10.7
    pip install --upgrade django==1.10.7

django

PyPI · All systems

Affected

  • introduced 1.9a1, fixed 1.9.13 (ecosystem)

Fixed versions

1.9.13

Fix

  • Fixed version 1.9.13
    pip install --upgrade django==1.9.13

django

PyPI · All systems

Affected

  • introduced 1.8a1, fixed 1.8.18 (ecosystem)

Fixed versions

1.8.18

Fix

  • Fixed version 1.8.18
    pip install --upgrade django==1.8.18

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