Executive Summary

Summary
Title policyd-weight: Insecure temporary file creation
Informations
Name GLSA-200804-11 First vendor Publication 2008-04-11
Vendor Gentoo Last vendor Modification 2008-04-11
Severity (Vendor) Normal Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:L/AC:M/Au:N/C:C/I:C/A:C)
Cvss Base Score 6.9 Attack Range Local
Cvss Impact Score 10 Attack Complexity Medium
Cvss Expoit Score 3.4 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

policyd-weight uses temporary files in an insecure manner, allowing for a symlink attack.

Background

policyd-weight is a Perl policy daemon for the Postfix MTA intended to eliminate forged envelope senders and HELOs.

Description

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

Resolution

All policyd-weight users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot -v ">=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.

References

[ 1 ] CVE-2008-1569 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1569

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200804-11.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200804-11.xml

CAPEC : Common Attack Pattern Enumeration & Classification

Id Name
CAPEC-26 Leveraging Race Conditions
CAPEC-27 Leveraging Race Conditions via Symbolic Links
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions

CWE : Common Weakness Enumeration

% Id Name
50 % CWE-362 Race Condition
50 % CWE-59 Improper Link Resolution Before File Access ('Link Following')

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:20303
 
Oval ID: oval:org.mitre.oval:def:20303
Title: DSA-1531-2 policyd-weight - insecure temporary files
Description: Chris Howells discovered that policyd-weight, a policy daemon for the Postfix mail transport agent, created its socket in an insecure way, which may be exploited to overwrite or remove arbitrary files from the local system.
Family: unix Class: patch
Reference(s): DSA-1531-2
CVE-2008-1569
CVE-2008-1570
Version: 5
Platform(s): Debian GNU/Linux 4.0
Product(s): policyd-weight
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:8031
 
Oval ID: oval:org.mitre.oval:def:8031
Title: DSA-1531 policyd-weight -- insecure temporary files
Description: Chris Howells discovered that policyd-weight, a policy daemon for the Postfix mail transport agent, created its socket in an insecure way, which may be exploited to overwrite or remove arbitrary files from the local system.
Family: unix Class: patch
Reference(s): DSA-1531
CVE-2008-1569
CVE-2008-1570
Version: 3
Platform(s): Debian GNU/Linux 4.0
Product(s): policyd-weight
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 2

OpenVAS Exploits

Date Description
2008-09-24 Name : Gentoo Security Advisory GLSA 200804-11 (policyd-weight)
File : nvt/glsa_200804_11.nasl
2008-09-04 Name : FreeBSD Ports: postfix-policyd-weight
File : nvt/freebsd_postfix-policyd-weight.nasl
2008-04-07 Name : Debian Security Advisory DSA 1531-1 (policyd-weight)
File : nvt/deb_1531_1.nasl
2008-04-07 Name : Debian Security Advisory DSA 1531-2 (policyd-weight)
File : nvt/deb_1531_2.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
43888 policyd-weight for Postfix Socket Handling Unspecified Arbitrary File Manipul...

Nessus® Vulnerability Scanner

Date Description
2008-04-17 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200804-11.nasl - Type : ACT_GATHER_INFO
2008-04-11 Name : The remote FreeBSD host is missing a security-related update.
File : freebsd_pkg_072a53e0039711ddbd060017319806e7.nasl - Type : ACT_GATHER_INFO
2008-03-28 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1531.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:35:44
  • Multiple Updates