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

critical Nessus Plugin ID 133476

Language:

New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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.3

Type: local

Published: 2/5/2020

Updated: 2/12/2020

Dependencies: ssh_get_info.nasl

Risk Information

VPR

Risk Factor: High

Score: 8.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

Temporal Vector: E:U/RL:OF/RC:C

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: E:U/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 Ease: No known exploits are available

Patch Publication Date: 2/4/2020

Vulnerability Publication Date: 2/3/2020

Reference Information

CVE: CVE-2020-7471