Advisory

GHSA-wxg3-mfph-qg9w

Also known as: CVE-2011-4138, PYSEC-2011-3

Summary

Django Might Allow CSRF Requests via URL Verification

Details

The verify_exists functionality in the URLField implementation in Django before 1.2.7 and 1.3.x before 1.3.1 originally tests a URL's validity through a HEAD request, but then uses a GET request for the new target URL in the case of a redirect, which might allow remote attackers to trigger arbitrary GET requests with an unintended source IP address via a crafted Location header.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 03:49 UTC
Modified
2024-09-16 22:47 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.2.7 (ecosystem)

Fixed versions

1.2.7

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.3, fixed 1.3.1 (ecosystem)

Fixed versions

1.3.1

Fix

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

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