Linux lpd DVI Print Filter (dvips) Remote Command Execution

This script is Copyright (C) 2002-2011 Tenable Network Security, Inc.


Synopsis :

The remote host is affected by a remote buffer overflow vulnerability.

Description :

The remote lpd server calls dvips in insecure mode. An attacker may
use this flaw to execute arbitrary commands remotely on this host.

See also :

http://marc.info/?l=bugtraq&m=99892644616749&w=2

Solution :

Edit /usr/lib/rhs/rhs-printfilters/dvi-to-ps.fpi
and change the line that specifies how 'dvips' is
to be executed from :
dvips -f $DVIPS_OPTIONS < $TMP_FILE
to
dvips -R -f $DVIPS_OPTIONS < $TMP_FILE

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 7.1
(CVSS2#E:H/RL:W/RC:ND)
Public Exploit Available : true

Family: Gain a shell remotely

Nessus Plugin ID: 11023 (lpd_dvips.nasl)

Bugtraq ID: 3241

CVE ID: CVE-2001-1002