J-Security Center

Title: SAP Web Application Server for Linux Arbitrary Command Execution Vulnerability

Severity: MODERATE

Description:

The SAP TestDrive Web Application Server for Linux is distributed as part of a SAP LinuxLab evaluation CD.

An input validation error exists in the SAP Operating System Collector (saposcol) included with the CD which could allow a local user to execute arbitrary code with elevated privileges.

The problem exists as the result of a call to popen(). Since popen() relies on /bin/sh to execute programs and no checking is done on environment variables, an attacker could modify their own environment variables such that saposcol executes unintended programs.

Because the program is installed setuid root by default, it is possible for a local attacker to execute arbitrary code as root.

Note: The original report detailing this vulnerability was based on analysis of an evaluation version of the SAP Web Application Server for Linux. While it is likely that the vulnerability is present in commercial versions, it has not been confirmed.

Affected Products:

  • SAP saposcol for Linux 1.0.0
  • SAP saposcol for Linux 1.1.0
  • SAP saposcol for Linux 1.2.0
  • SAP saposcol for Linux 1.3.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.