GLSA-200410-07 : ed: Insecure temporary file handling

medium Nessus Plugin ID 15445

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-200410-07 (ed: Insecure temporary file handling)

ed insecurely creates temporary files in world-writeable directories with predictable names. Given that ed is used in various system shell scripts, they are by extension affected by the same vulnerability.
Impact :

A local attacker could create symbolic links in the temporary files directory, pointing to a valid file somewhere on the filesystem. When ed is called, this would result in file access with the rights of the user running the utility, which could be the root user.
Workaround :

There is no known workaround at this time.

Solution

All ed users should upgrade to the latest version:
# emerge sync # emerge -pv '>=sys-apps/ed-0.2-r4' # emerge '>=sys-apps/ed-0.2-r4'

See Also

https://security.gentoo.org/glsa/200410-07

Plugin Details

Severity: Medium

ID: 15445

File Name: gentoo_GLSA-200410-07.nasl

Version: 1.15

Type: local

Published: 10/9/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.2

CVSS v2

Risk Factor: Medium

Base Score: 4.6

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:ed, cpe:/o:gentoo:linux

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

Patch Publication Date: 10/9/2004

Vulnerability Publication Date: 12/11/2000

Reference Information

CVE: CVE-2000-1137

GLSA: 200410-07