Skip to content
OpenAdvisories
High · 7.5 CVE-2011-4138 EUVD-2011-0008GHSA-wxg3-mfph-qg9wPYSEC-2011-3

Django Might Allow CSRF Requests via URL Verification

Published Oct 19, 2011 · Updated Aug 7, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 1.3.1-1 —
Debian 13 python-django 1.3.1-1 —
Debian 12 python-django 1.3.1-1 —
Debian 6.0 python-django 1.2.3-3+squeeze2 DSA-2332-1
Debian 5.0 python-django 1.0.2-1+lenny3 DSA-2332-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 1.2.7 1.2.7 GHSA-wxg3-mfph-qg9w
PyPI django >= 1.3, < 1.3.1 1.3.1 GHSA-wxg3-mfph-qg9w
PyPI django < 1.2.7 · >= 1.3, < 1.3.1 1.2.7, 1.3.1 PYSEC-2011-3

Advisories 1

References