GitHub Advisoryadvisory · PyPI

GHSA-wxg3-mfph-qg9w Django Might Allow CSRF Requests via URL Verification

HIGH Published 2022-05-14 Modified 2024-09-16 Official page ↗
Aliases
CVE-2011-4138
Ecosystem
PyPI
Packages
Django
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-20
Reviewed
2024-01-16

Affected packages

• PyPI Django: < 1.2.7 → fixed in 1.2.7 • PyPI Django: >= 1.3, < 1.3.1 → fixed in 1.3.1

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.

Related

Alias · CVE (1)

  • CVE-2011-4138 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… vulnerability

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References