Public Vulnerability Reports

SAPlpd Buffer Overflow Vulnerability

10.29.03

BACKGROUND

The SAPlpd, which ships with the SAP client, binds to port 515, allowing
SAP Client to receive print jobs remotely.

DESCRIPTION

The line printer daemon (lpd) protocol of System Application Products in
Data Processing's SAPGUI for the Java Environment for Windows versions
630 and earlier has a vulnerability in the bounds checking of queue
entries that can allow for remote execution of arbitrary code. The
SAPlpd, which ships with the SAP client, binds to port 515, allowing SAP
Client to receive print jobs remotely. Due to lack of bounds checking,
SAPlpd can be crashed remotely by sending a print job with the 'queue'
field set to a very long value.

ANALYSIS

Exploitation allows an attacker to crash
the SAPlpd server, and potentially execute arbitrary code.

DETECTION

All versions of SAPGUI for Windows XP and Windows 2000 versions 630 and
earlier are vulnerable.

WORKAROUND

Disable the SAPlpd and use the Windows printer daemon.

CVE INFORMATION

A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned to this issue.

DISCLOSURE TIMELINE

10/01/2003   Initial vendor notification
10/15/2003   iDEFENSE Clients notified
10/29/2003   Public Disclosure

CREDIT

Tan Jin Yean is credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

LEGAL NOTICES

Copyright © 2004 Verisign, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.