GLSA-200606-02 : shadow: Privilege escalation

low Nessus Plugin ID 21664

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-200606-02 (shadow: Privilege escalation)

When the mailbox is created in useradd, the 'open()' function does not receive the three arguments it expects while O_CREAT is present, which leads to random permissions on the created file, before fchmod() is executed.
Impact :

Depending on the random permissions given to the mailbox file which is at this time owned by root, a local user may be able to open this file for reading or writing, or even executing it, maybe as the root user.
Workaround :

There is no known workaround at this time.

Solution

All shadow users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=sys-apps/shadow-4.0.15-r2'

See Also

https://security.gentoo.org/glsa/200606-02

Plugin Details

Severity: Low

ID: 21664

File Name: gentoo_GLSA-200606-02.nasl

Version: 1.15

Type: local

Published: 6/8/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.1

CVSS v2

Risk Factor: Low

Base Score: 3.7

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

Vulnerability Information

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

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

Patch Publication Date: 6/7/2006

Vulnerability Publication Date: 2/23/2006

Reference Information

CVE: CVE-2006-1174

GLSA: 200606-02