Affected versions
Version ranges need review.
PyPIdjango
- Affected versions
- >= 1.11a1, < 1.11.21
- Fixed version
- 1.11.21
PyPIdjango
- Affected versions
- >= 2.2a1, < 2.2.2
- Fixed version
- 2.2.2
PyPIdjango
- Affected versions
- >=2.1 <2.1.9 || >=1.11 <1.11.21 || >=2.2 <2.2.2 || =1.11 || =1.11.1 || =1.11.2 || =1.11.3 || =1.11.4 || =1.11.5 || =1.11.6 || =1.11.7 || =1.11.8 || =1.11.9 || =1.11.10 || =1.11.11 || =1.11.12 || =1.11.13 || =1.11.14 || =1.11.15 || =1.11.16 || =1.11.17 || =1.11.18 || =1.11.20 || =2.1 || =2.1.1 || =2.1.2 || =2.1.3 || =2.1.4 || =2.1.5 || =2.1.7 || =2.1.8 || =2.2 || =2.2.1
- Fixed version
- 1.11.21 · 2.1.9 · 2.2.2
PyPIdjango
- Affected versions
- >= 2.1a1, < 2.1.9
- Fixed version
- 2.1.9
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
Description
An issue was discovered in Django 1.11 before 1.11.21, 2.1 before 2.1.9, and 2.2 before 2.2.2. The clickable Current URL value displayed by the AdminURLFieldWidget displays the provided value without validating it as a safe URL. Thus, an unvalidated value stored in the database, or a value provided as a URL query parameter payload, could result in an clickable JavaScript link.
Links
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html
- http://www.openwall.com/lists/oss-security/2019/06/03/2
- http://www.securityfocus.com/bid/108559
- https://docs.djangoproject.com/en/dev/releases/1.11.21
- https://docs.djangoproject.com/en/dev/releases/1.11.21/
- https://docs.djangoproject.com/en/dev/releases/2.1.9
- https://docs.djangoproject.com/en/dev/releases/2.1.9/
- https://docs.djangoproject.com/en/dev/releases/2.2.2
- https://docs.djangoproject.com/en/dev/releases/2.2.2/
- https://docs.djangoproject.com/en/dev/releases/security
- https://docs.djangoproject.com/en/dev/releases/security/
- https://github.com/advisories/GHSA-7rp2-fm2h-wchj
- https://github.com/django/django
- https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62
- https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673
- https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-79.yaml
- https://groups.google.com/forum/#!topic/django-announce/GEbHU7YoVz8
- https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html
- https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G/
- https://nvd.nist.gov/vuln/detail/CVE-2019-12308
- https://seclists.org/bugtraq/2019/Jul/10
- https://security.gentoo.org/glsa/202004-17
- https://usn.ubuntu.com/4043-1
- https://usn.ubuntu.com/4043-1/
- https://www.debian.org/security/2019/dsa-4476
- https://www.djangoproject.com/weblog/2019/jun/03/security-releases
- https://www.djangoproject.com/weblog/2019/jun/03/security-releases/
Credits
- sunSUNQ

