FreeBSD : Django -- potential SQL injection vulnerability (5a45649a-4777-11ea-bdec-08002728f74c)

critical Nessus Plugin ID 133476

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

MITRE CVE reports :

Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter (e.g., in Django applications that offer downloads of data as a series of rows with a user-specified column delimiter). By passing a suitably crafted delimiter to a contrib.postgres.aggregates.StringAgg instance, it was possible to break escaping and inject malicious SQL.

Solution

Update the affected packages.

See Also

https://docs.djangoproject.com/en/1.11/releases/1.11.28/

https://docs.djangoproject.com/en/2.2/releases/2.2.10/

https://docs.djangoproject.com/en/3.0/releases/3.0.3/

http://www.nessus.org/u?e85e386f

Plugin Details

Severity: Critical

ID: 133476

File Name: freebsd_pkg_5a45649a477711eabdec08002728f74c.nasl

Version: 1.4

Type: local

Published: 2/5/2020

Updated: 3/28/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2020-7471

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:py27-django111, p-cpe:/a:freebsd:freebsd:py35-django111, p-cpe:/a:freebsd:freebsd:py35-django22, p-cpe:/a:freebsd:freebsd:py36-django111, p-cpe:/a:freebsd:freebsd:py36-django22, p-cpe:/a:freebsd:freebsd:py36-django30, p-cpe:/a:freebsd:freebsd:py37-django111, p-cpe:/a:freebsd:freebsd:py37-django22, p-cpe:/a:freebsd:freebsd:py37-django30, p-cpe:/a:freebsd:freebsd:py38-django111, p-cpe:/a:freebsd:freebsd:py38-django22, p-cpe:/a:freebsd:freebsd:py38-django30, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/4/2020

Vulnerability Publication Date: 2/3/2020

Reference Information

CVE: CVE-2020-7471