Lucene search

K
archlinuxArchLinuxASA-201906-2
HistoryJun 04, 2019 - 12:00 a.m.

[ASA-201906-2] python-django: cross-site scripting

2019-06-0400:00:00
security.archlinux.org
29

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

0.035 Low

EPSS

Percentile

91.5%

Arch Linux Security Advisory ASA-201906-2

Severity: Medium
Date : 2019-06-04
CVE-ID : CVE-2019-11358 CVE-2019-12308
Package : python-django
Type : cross-site scripting
Remote : Yes
Link : https://security.archlinux.org/AVG-969

Summary

The package python-django before version 2.2.2-1 is vulnerable to
cross-site scripting.

Resolution

Upgrade to 2.2.2-1.

pacman -Syu “python-django>=2.2.2-1”

The problems have been fixed upstream in version 2.2.2.

Workaround

None.

Description

  • CVE-2019-11358 (cross-site scripting)

jQuery before 3.4.0, mishandles jQuery.extend(true, {}, …) because of
Object.prototype pollution. If an unsanitized source object contained
an enumerable proto property, it could extend the native
Object.prototype.

The bundled version of jQuery used by the Django admin has been patched
to allow for the select2 library’s use of jQuery.extend().

  • CVE-2019-12308 (cross-site scripting)

The clickable “Current URL” link generated by AdminURLFieldWidget
displayed 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.

AdminURLFieldWidget now validates the provided value using URLValidator
before displaying the clickable link. You may customise the validator
by passing a validator_class kwarg to AdminURLFieldWidget.init(),
e.g. when using ModelAdmin.formfield_overrides.

Impact

A remote attacker is able to execute javascript and create html content
in the admin view or by extending the native Object.prototype via
jQuery.extend.

References

https://www.djangoproject.com/weblog/2019/jun/03/security-releases/
https://github.com/django/django/commit/baaf187a4e354bf3976c51e2c83a0d2f8ee6e6ad
https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673
https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b
https://security.archlinux.org/CVE-2019-11358
https://security.archlinux.org/CVE-2019-12308

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanypython-django< 2.2.2-1UNKNOWN

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

4.3 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

0.035 Low

EPSS

Percentile

91.5%