FreeBSD : sudo -- Privilege escalation with sudoedit (1a9f678d-48ca-11df-85f8-000c29a67389)

medium Nessus Plugin ID 45547

Language:

Synopsis

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

Description

Todd Miller reports :

Sudo's command matching routine expects actual commands to include one or more slash ('/') characters. The flaw is that sudo's path resolution code did not add a './' prefix to commands found in the current working directory. This creates an ambiguity between a 'sudoedit' command found in the cwd and the 'sudoedit' pseudo-command in the sudoers file. As a result, a user may be able to run an arbitrary command named 'sudoedit' in the current working directory.
For the attack to be successful, the PATH environment variable must include '.' and may not include any other directory that contains a 'sudoedit' command.

Solution

Update the affected package.

See Also

https://www.sudo.ws/pipermail/sudo-announce/2010-April/000093.html

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

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

Plugin Details

Severity: Medium

ID: 45547

File Name: freebsd_pkg_1a9f678d48ca11df85f8000c29a67389.nasl

Version: 1.11

Type: local

Published: 4/16/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.9

Vector: CVSS2#AV:L/AC:M/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: 4/15/2010

Vulnerability Publication Date: 4/9/2010

Reference Information

CVE: CVE-2010-1163