GLSA-200804-11 : policyd-weight: Insecure temporary file creation

low Nessus Plugin ID 31958

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200804-11 (policyd-weight: Insecure temporary file creation)

Chris Howells reported that policyd-weight creates and uses the '/tmp/.policyd-weight/' directory in an insecure manner.
Impact :

A local attacker could exploit this vulnerability to delete arbitrary files or change the ownership to the 'polw' user via symlink attacks.
Workaround :

Set '$LOCKPATH = '/var/run/policyd-weight/'' manually in '/etc/policyd-weight.conf'.

Solution

All policyd-weight users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=mail-filter/policyd-weight-0.1.14.17' This version changes the default path for sockets to '/var/run/policyd-weight', which is only writable by a privileged user.
Users need to restart policyd-weight immediately after the upgrade due to this change.

See Also

https://security.gentoo.org/glsa/200804-11

Plugin Details

Severity: Low

ID: 31958

File Name: gentoo_GLSA-200804-11.nasl

Version: 1.16

Type: local

Published: 4/17/2008

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Low

Base Score: 3.3

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:policyd-weight, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 4/11/2008

Reference Information

CVE: CVE-2008-1569

CWE: 59

GLSA: 200804-11