ADVISORIES

PyPA Advisory Database

PYSEC-2011-5

Details

The CSRF protection mechanism in Django through 1.2.7 and 1.3.x through 1.3.1 does not properly handle web-server configurations supporting arbitrary HTTP Host headers, which allows remote attackers to trigger unauthenticated forged requests via vectors involving a DNS CNAME record and a web page containing JavaScript code.

Affected packages

EcosystemPackageAffected versions
PyPIdjango
All versions before 1.2.7 (fixed in 1.2.7)
From 1.3 before 1.3.1 (fixed in 1.3.1)

References