Mandrake Linux Security Advisory : printer-drivers (MDKSA-2003:010)

high Nessus Plugin ID 13995

Synopsis

The remote Mandrake Linux host is missing one or more security updates.

Description

Karol Wiesek and iDefense disovered three vulnerabilities in the printer-drivers package and tools it installs. These vulnerabilities allow a local attacker to empty or create any file on the filesystem.

The first vulnerability is in the mtink binary, which has a buffer overflow in its handling of the HOME environment variable.

The second vulnerability is in the escputil binary, which has a buffer overflow in the parsing of the --printer-name command line argument.
This is only possible when esputil is suid or sgid; in Mandrake Linux 9.0 it was sgid 'sys'. Successful exploitation will provide the attacker with the privilege of the group 'sys'.

The third vulnerability is in the ml85p binary which contains a race condition in the opening of a temporary file. By default this file is installed suid root so it can be used to gain root privilege. The only caveat is that this file is not executable by other, only by root or group 'sys'. Using either of the two previous vulnerabilities, an attacker can exploit one of them to obtain 'sys' privilege' and then use that to exploit this vulnerability to gain root privilege.

MandrakeSoft encourages all users to upgrade immediately.

Aside from the security vulnerabilities, a number of bugfixes are included in this update, for Mandrake Linux 9.0 users. GIMP-Print 4.2.5pre1, HPIJS 1.3, pnm2ppa 1.12, mtink 0.9.53, and a new foomatic snapshot are included. For a list of the many bugfixes, please refer to the RPM changelog.

Solution

Update the affected packages.

See Also

http://www.idefense.com/advisory/01.21.03.txt

Plugin Details

Severity: High

ID: 13995

File Name: mandrake_MDKSA-2003-010.nasl

Version: 1.19

Type: local

Published: 7/31/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

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:mandriva:linux:cups-drivers, p-cpe:/a:mandriva:linux:foomatic, p-cpe:/a:mandriva:linux:ghostscript, p-cpe:/a:mandriva:linux:ghostscript-module-svgalib, p-cpe:/a:mandriva:linux:ghostscript-module-x, p-cpe:/a:mandriva:linux:ghostscript-utils, p-cpe:/a:mandriva:linux:gimpprint, p-cpe:/a:mandriva:linux:libgimpprint1, p-cpe:/a:mandriva:linux:libgimpprint1-devel, p-cpe:/a:mandriva:linux:libijs0, p-cpe:/a:mandriva:linux:libijs0-devel, p-cpe:/a:mandriva:linux:omni, p-cpe:/a:mandriva:linux:printer-filters, p-cpe:/a:mandriva:linux:printer-testpages, p-cpe:/a:mandriva:linux:printer-utils, cpe:/o:mandrakesoft:mandrake_linux:8.0, cpe:/o:mandrakesoft:mandrake_linux:8.1, cpe:/o:mandrakesoft:mandrake_linux:8.2, cpe:/o:mandrakesoft:mandrake_linux:9.0

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/Mandrake/release, Host/Mandrake/rpm-list

Patch Publication Date: 1/21/2003

Reference Information

CVE: CVE-2003-0034, CVE-2003-0035, CVE-2003-0036

MDKSA: 2003:010