FreeBSD : sudo -- format string vulnerability (7c920bb7-4b5f-11e1-9f47-00e0815b8da8)

high Nessus Plugin ID 57739

Synopsis

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

Description

Todd Miller reports :

Sudo 1.8.0 introduced simple debugging support that was primarily intended for use when developing policy or I/O logging plugins. The sudo_debug() function contains a flaw where the program name is used as part of the format string passed to the fprintf() function. The program name can be controlled by the caller, either via a symbolic link or, on some systems, by setting argv[0] when executing sudo.

Using standard format string vulnerability exploitation techniques it is possible to leverage this bug to achieve root privileges.

Exploitation of the bug does not require that the attacker be listed in the sudoers file. As such, we strongly suggest that affected sites upgrade from affected sudo versions as soon as possible.

Solution

Update the affected package.

See Also

http://www.gratisoft.us/sudo/alerts/sudo_debug.html

http://www.nessus.org/u?52b68937

Plugin Details

Severity: High

ID: 57739

File Name: freebsd_pkg_7c920bb74b5f11e19f4700e0815b8da8.nasl

Version: 1.8

Type: local

Published: 1/31/2012

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.4

CVSS v2

Risk Factor: High

Base Score: 7.2

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/30/2012

Vulnerability Publication Date: 1/30/2012

Reference Information

CVE: CVE-2012-0809