Debian DLA-2954-1 : python-treq - LTS security update

medium Nessus Plugin ID 159069

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 9 host has packages installed that are affected by a vulnerability as referenced in the dla-2954 advisory.

- treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain (supercookies). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it. (CVE-2022-23607)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the python-treq packages.

For Debian 9 Stretch, these problems have been fixed in version 15.1.0-1+deb9u1.

See Also

https://www.debian.org/lts/security/2022/dla-2954

https://security-tracker.debian.org/tracker/CVE-2022-23607

https://packages.debian.org/source/stretch/python-treq

Plugin Details

Severity: Medium

ID: 159069

File Name: debian_DLA-2954.nasl

Version: 1.3

Type: local

Agent: unix

Published: 3/18/2022

Updated: 1/29/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

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

CVSS Score Source: CVE-2022-23607

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:python-treq, p-cpe:/a:debian:debian_linux:python-treq-doc, cpe:/o:debian:debian_linux:9.0, p-cpe:/a:debian:debian_linux:python3-treq

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 3/18/2022

Vulnerability Publication Date: 2/1/2022

Reference Information

CVE: CVE-2022-23607