Skip links
Picture of Vahagn Vardanian

Vahagn Vardanian

Co-founder and CTO of RedRays

Code injection vulnerability in external commands, SAP security note 1965610

SAP Note 1965610

SAP security note 1965610, "Code injection vulnerability in external commands". Below are the symptom and SAP recommended solution.

Description

Symptom

External commands contain code that permits the execution of arbitrary operating system commands of the user’s choice.

An attacker can therefore control the behavior of the system or potentially escalate privileges by executing malicious code without having their own legitimate credentials.

Solution

With the correction, the condition “additional parameters allowed” is evaluated and handled correctly, i.e., additional parameters are allowed or refused for the command. In case that additional parameters are not allowed, the exception TOO_MANY_PARAMETERS is raised by the API.

Please apply the support package mentioned in this note or follow the respective correction instructions.

Reason and prerequisites

The program code contains a possibility to define and execute operating system commands that change the behavior of the system. A valid and authenticated user is required.

Depending on the command, the user can:

  • Inject and run their own code
  • Obtain additional information that should not be displayed
  • Modify data, delete data
  • Modify the output of the system
  • Create new users with higher privileges
  • Perform a denial-of-service attack

CVSS

Score 7.5 Vector: AV:N/AC:M/AU:S/C:P/I:P/A:C

Full note on SAP: SAP Support Launchpad note 1965610

Detailed exploitation and proof-of-concept material for this note is maintained in the RedRays Security Platform. For access, contact [email protected].

Explore More