FreeBSD : sudo -- Secure path vulnerability (d42e5b66-6ea0-11df-9c8d-00e0815b8da8)

medium Nessus Plugin ID 46792

Language:

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

Todd Miller reports :

Most versions of the C library function getenv() return the first instance of an environment variable to the caller. However, some programs, notably the GNU Bourne Again SHell (bash), do their own environment parsing and may choose the last instance of a variable rather than the first one.

An attacker may manipulate the environment of the process that executes Sudo such that a second PATH variable is present. When Sudo runs a bash script, it is this second PATH variable that is used by bash, regardless of whether or not Sudo has overwritten the first instance of PATH. This may allow an attacker to subvert the program being run under Sudo and execute commands he/she would not otherwise be allowed to run.

Solution

Update the affected package.

See Also

https://www.sudo.ws/sudo/alerts/secure_path.html

http://www.nessus.org/u?f0e26f26

Plugin Details

Severity: Medium

ID: 46792

File Name: freebsd_pkg_d42e5b666ea011df9c8d00e0815b8da8.nasl

Version: 1.10

Type: local

Published: 6/3/2010

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.2

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

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:sudo, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 6/2/2010

Vulnerability Publication Date: 6/2/2010

Reference Information

CVE: CVE-2010-1646