Linux lpd DVI Print Filter (dvips) Remote Command Execution

high Nessus Plugin ID 11023

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.

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

See Also

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

Plugin Details

Severity: High

ID: 11023

File Name: lpd_dvips.nasl

Version: 1.24

Type: remote

Published: 6/8/2002

Updated: 3/6/2019

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.2

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS v3

Risk Factor: High

Base Score: 7.3

Temporal Score: 6.6

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 8/27/2001

Reference Information

CVE: CVE-2001-1002

BID: 3241