Advisory

GHSA-2655-q453-22f9

Also known as: CVE-2012-4520, PYSEC-2012-7

Summary

Django Allows Arbitrary URL Generation

Details

The django.http.HttpRequest.get_host function in Django 1.3.x before 1.3.4 and 1.4.x before 1.4.2 allows remote attackers to generate and display arbitrary URLs via crafted username and password Host header values.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-17 05:10 UTC
Modified
2024-09-18 19:08 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.3, fixed 1.3.4 (ecosystem)

Fixed versions

1.3.4

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.4, fixed 1.4.2 (ecosystem)

Fixed versions

1.4.2

Fix

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

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