Executive Summary

Summary
Title Shadow: Privilege escalation
Informations
Name GLSA-200903-24 First vendor Publication 2009-03-10
Vendor Gentoo Last vendor Modification 2009-03-10
Severity (Vendor) High 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:L/Au:N/C:C/I:C/A:C)
Cvss Base Score 7.2 Attack Range Local
Cvss Impact Score 10 Attack Complexity Low
Cvss Expoit Score 3.9 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

An insecure temporary file usage in Shadow may allow local users to gain root privileges.

Background

Shadow is a set of tools to deal with user accounts.

Description

Paul Szabo reported a race condition in the "login" executable when setting up tty permissions.

Impact

A local attacker belonging to the "utmp" group could use symlink attacks to overwrite arbitrary files and possibly gain root privileges.

Workaround

There is no known workaround at this time.

Resolution

All Shadow users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/shadow-4.1.2.2"

References

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

Availability

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

http://security.gentoo.org/glsa/glsa-200903-24.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200903-24.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-59 Improper Link Resolution Before File Access ('Link Following')

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:13625
 
Oval ID: oval:org.mitre.oval:def:13625
Title: DSA-1709-1 shadow -- race condition
Description: Paul Szabo discovered that login, the system login tool, did not correctly handle symlinks while setting up tty permissions. If a local attacker were able to gain control of the system utmp file, they could cause login to change the ownership and permissions on arbitrary files, leading to a root privilege escalation. For the stable distribution, this problem has been fixed in version 4.0.18.1-7+etch1. For the unstable distribution, this problem has been fixed in version 4.1.1-6. We recommend that you upgrade your shadow package.
Family: unix Class: patch
Reference(s): DSA-1709-1
CVE-2008-5394
Version: 5
Platform(s): Debian GNU/Linux 4.0
Product(s): shadow
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:17685
 
Oval ID: oval:org.mitre.oval:def:17685
Title: USN-695-1 -- shadow vulnerability
Description: Paul Szabo discovered a race condition in login.
Family: unix Class: patch
Reference(s): USN-695-1
CVE-2008-5394
Version: 5
Platform(s): Ubuntu 6.06
Ubuntu 7.10
Ubuntu 8.04
Ubuntu 8.10
Product(s): shadow
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:7801
 
Oval ID: oval:org.mitre.oval:def:7801
Title: DSA-1709 shadow -- race condition
Description: Paul Szabo discovered that login, the system login tool, did not correctly handle symlinks while setting up tty permissions. If a local attacker were able to gain control of the system utmp file, they could cause login to change the ownership and permissions on arbitrary files, leading to a root privilege escalation.
Family: unix Class: patch
Reference(s): DSA-1709
CVE-2008-5394
Version: 3
Platform(s): Debian GNU/Linux 4.0
Product(s): shadow
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 1

OpenVAS Exploits

Date Description
2009-03-23 Name : Ubuntu Update for shadow vulnerability USN-695-1
File : nvt/gb_ubuntu_USN_695_1.nasl
2009-03-13 Name : Gentoo Security Advisory GLSA 200903-24 (shadow)
File : nvt/glsa_200903_24.nasl
2009-03-07 Name : Mandrake Security Advisory MDVSA-2009:062 (shadow-utils)
File : nvt/mdksa_2009_062.nasl
2009-01-26 Name : Debian Security Advisory DSA 1709-1 (shadow)
File : nvt/deb_1709_1.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
50651 shadow on Debian GNU/Linux /bin/login utmp Users Temporary File Symlink Arbit...

Nessus® Vulnerability Scanner

Date Description
2009-04-23 Name : The remote Mandriva Linux host is missing a security update.
File : mandriva_MDVSA-2009-062.nasl - Type : ACT_GATHER_INFO
2009-04-23 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-695-1.nasl - Type : ACT_GATHER_INFO
2009-03-11 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200903-24.nasl - Type : ACT_GATHER_INFO
2009-01-21 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1709.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:36:23
  • Multiple Updates